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