Remove a Table

The tables.drop() method enables you to delete a table from a connected data source.

Database mariadb = server.getDatabase("mariadb");
mariadb.dropTable("user_table");

OR

Database mariadb = server.getDatabase("mariadb");
mariadb.tables.drop("user_table");
Updated on