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