SQL DROP Statement
The DROP statement is used to delete entire tables, databases, or specific constraints from a table. It removes the specified object and all associated data permanently, so use with caution.
In the statement below, we delete the entire Customers table from the database.
Example
Drop the Customers table:
DROP TABLE Customers;
In this example, the DROP TABLE statement deletes the Customers table and all data within it.
Video Explanation

Syntax
To drop a table:
DROP TABLE table_name;
To drop a database:
DROP DATABASE database_name;
To drop a constraint from a table:
ALTER TABLE table_name
DROP CONSTRAINT constraint_name;
Demo Database
The Customers table structure used in the examples would look like this before dropping:
| CustomerID | CustomerName | ContactName | Address | City | PostalCode | Country |
|---|---|---|---|---|---|---|
| 1 | Alfreds Futterkiste | Maria Anders | Obere Str. 57 | Berlin | 12209 | Germany |
| 2 | Ana Trujillo Emparedados y Helados | Ana Trujillo | Avda. de la Constitución 2222 | México D.F. | 05021 | Mexico |
| 3 | Antonio Moreno Taquería | Antonio Moreno | Mataderos 2312 | México D.F. | 05023 | Mexico |
| 4 | Around the Horn | Thomas Hardy | 120 Hanover Sq. | London | WA1 1DP | UK |
| 5 | Berglunds snabbköp | Christina Berglund | Berguvsvägen 8 | Luleå | S-958 22 | Sweden |
Dropping a Table
Example
Delete the Orders table:
DROP TABLE Orders;
This deletes the entire Orders table and all of its data permanently.
Dropping a Database
Example
Delete the SalesDB database:
DROP DATABASE SalesDB;
Using DROP DATABASE will remove the database and all tables and data within it.