delete ci with condition code example Example: Delete Query with Where Condition in Codeigniter $this->db->where('id', 2); $this->db->delete('table_name');