delete data table in mysql code example Example 1: drop table in mysql DROP TABLE table_name; Example 2: how to delete a table in mysql DROP TABLE tablename;