Remove rows that match a condition.
Section: INSERT, UPDATE, and DELETE
Delete matching rows
sql
sql
DELETE FROM sessions
WHERE expires_at < CURRENT_TIMESTAMP;Explanation
DELETE removes rows one by one from the table.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing INSERT, UPDATE, and DELETE