How to Delete in MySQL

To delete rows in a MySQL table, use the DELETE FROM statement:

DELETE FROM products WHERE product_id=1;

The WHERE clause is optional, but you'll usually want it, unless you really want to delete every row from the table.

database icon
Real-time SQL collaboration is here
Get started with PopSQL and MySQL in minutes