delete query builder in codeigniter 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');