The DELETE statement creates a query that removes records from one or more tables.
A DELETE is permanent!
After you remove records using a DELETE statement, you cannot undo the operation. To check which records will be deleted, examine the results of a SELECT query that uses the same criteria.
It is also important to understand, that a DELETE statement deletes entire records, not just data in specified fields. If you just want to delete certain fields, use an UPDATE query that changes the value to NULL.
DELETE FROM Residents;
(10 row(s) affected)
This example demonstrates how to totally empty a table of all records while leaving the table structure and properties, such as attributes and indexes, intact.
DELETE FROM Residents
WHERE Occupation = 'Teacher';
(3 row(s) affected)
This example is more specific and only deletes those records that meet certain criteria.