clear all values in table sql code example
Example 1: sql delete all values in a column
UPDATE TableName SET ColumnName = NULL
Example 2: delete query
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}