Hapus kueri dengan kondisi di CodeIgniter
$this->db->where('id', 2);
$this->db->delete('table_name');
Black Bat
$this->db->where('id', 2);
$this->db->delete('table_name');