Check out example codes for "sql delete row". It will help you in understanding the concepts better.

Code Example 1

DELETE FROM Customers
 WHERE CustomerName='Alfreds Futterkiste';

Code Example 2

DELETE FROM table_name WHERE condition;

Code Example 3

DELETE FROM table_name WHERE condition;

Code Example 4

DELETE FROM table_name WHERE condition;

Code Example 5

public function deletedata(){	

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

	}

Code Example 6

-- Deletes all records where `columnName` matches the values in brackets.
DELETE FROM tableName WHERE columnName IN ('val1', 'val2', 'val3');

Learn ReactJs, React Native from akashmittal.com