SQLite DROP TABLE Statement
The DROP TABLE Statement
The DROP TABLE statement deletes a table, with all the data in it.
DROP TABLE table_name;
Warning: Be careful. When a table is deleted, all the data in it is gone!
Example
In the editor, you can click "Restore Database" to get the table back.
IF EXISTS
If the table does not exist, DROP TABLE gives an error. Add IF EXISTS to avoid it:
Delete Only the Data
To delete all the data, but keep the table, use DELETE FROM without a WHERE clause: