SQL

DELETE Statement

Remove records from a table.

By TechCoder TeamLast updated: 2026-06-02
In a Nutshell

Remove records from a table. This hands-on tutorial focuses on practical implementation of delete statement concepts.

DELETE Statement

The DELETE statement is used to delete existing records in a table.

[!CAUTION] Like UPDATE, if you omit the WHERE clause, ALL records in the table will be DELETED!

Syntax

DELETE FROM table_name
WHERE condition;

Example

Delete the customer "Alfreds Futterkiste" from the "Customers" table.

DELETE FROM Customers
WHERE CustomerName = 'Alfreds Futterkiste';

Delete All Records

To delete all rows in a table without deleting the table structure itself:

DELETE FROM table_name;

Or slightly faster in some DBs (but cannot be rolled back in some cases):

TRUNCATE TABLE table_name;
SQL PLAYGROUND
⏳ Loading editor…