sql to delete all records from a table item code example
Example: delete query
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}