DELETE

Removes rows from a table. Always use WHERE to avoid deleting all rows.

Syntax

sql
DELETE FROM table WHERE condition;

Example

sql
DELETE FROM sessions
WHERE expires_at < NOW();