$tables = array('tasks', 'task_time', 'task_favorites', 'task_subscribers'); $this->db->where('task_id', $task_id); $this->db->delete($tables);
Deletes are not allowed unless they contain a "where" or "like" clause.