The code below can be used to delete a table and all its data from the database:
DROP TABLE table_name;
Where table_name is the name of the table you wish to delete.