Delete Query with Where Condition in Codeigniter

PHP
	$this->db->where('id', 2);	
	$this->db->delete('table_name');
	
Source

Also in PHP: