Remove a table definition and its data.
Section: CREATE, ALTER, and DROP
Drop table
sql
sql
DROP TABLE old_logs;Explanation
Be careful: dropping a table deletes its data. Some engines support IF EXISTS.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing CREATE, ALTER, and DROP