> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# DROP TABLE

> DROP TABLE is used to delete a table.

DROP TABLE is used to delete a table.

## Syntax

```sql theme={null}
DROP [TEMPORARY] TABLE [IF EXISTS] [db_name.]table_name [FORCE]
```

Note:

* After a table is dropped, you can use the [RECOVER](/documents/4.2/sql-reference/sql-statements/backup_restore/RECOVER.md) statement to restore the table within a specified period (1 day by default).
* If DROP Table FORCE is executed, the table will be deleted directly and cannot be recovered without checking whether there are unfinished activities in the database. Generally, this operation is not recommended.
* Once dropped, temporary tables cannot be restored using RECOVER.

## Examples

1. Drop a table.

   ```sql theme={null}
   DROP TABLE my_table;
   ```

2. If it exists, then drop the table on the specified database.

   ```sql theme={null}
   DROP TABLE IF EXISTS example_db.my_table;
   ```

3. Force to drop the table and clear its data on disk.

   ```sql theme={null}
   DROP TABLE my_table FORCE;
   ```

## References

* [CREATE TABLE](/documents/4.2/sql-reference/sql-statements/table_bucket_part_index/CREATE_TABLE.md)
* [SHOW TABLES](/documents/4.2/sql-reference/sql-statements/table_bucket_part_index/SHOW_TABLES.md)
* [SHOW CREATE TABLE](/documents/4.2/sql-reference/sql-statements/table_bucket_part_index/SHOW_CREATE_TABLE.md)
* [ALTER TABLE](/documents/4.2/sql-reference/sql-statements/table_bucket_part_index/ALTER_TABLE.md)
* [SHOW ALTER TABLE](/documents/4.2/sql-reference/sql-statements/table_bucket_part_index/SHOW_ALTER.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.