Skip to content
Merged
34 changes: 34 additions & 0 deletions content/sql/concepts/commands/terms/drop-table/drop-table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
Title: 'DROP TABLE'
Description: 'Deletes an existing table in a database.'
Subjects:
- 'Data Science'
Tags:
- 'Database'
- 'Queries'
- 'PostgreSQL'
- 'MySQL'
- 'SQLite'
- 'Tables'
CatalogContent:
- 'learn-sql'
- 'paths/analyze-data-with-sql'
---

The **`DROP TABLE`** command deletes an existing table in a [database](https://www.codecademy.com/resources/docs/general/database).

## Syntax

```pseudo
DROP TABLE table_name;
```

The above command removes the `table_name` table from a database.

## Example

```sql
DROP TABLE students;
```

This example removes the `students` table from a database.