Removing databases in MySQL
Start your free 7-days trial now!
It is possible to remove a database in MySQL if it exists using the following syntax:
DROP DATABASE IF EXISTS database_name;
database_namerefers to the name of the database that we would like to remove.
When you remove a database, all the tables, indexes and columns associated with that database are also removed, hence this action should be performed with the utmost care.