Equally as simple as the CREATE DATABASE statement, the DROP DATABASE statement will destroy an entire database. This tutorial uses MySQL Workbench.
Required knowledge:
Syntax
DROP DATABASE `databasename`;
Example
Continuing from the CREATE DATABASE statement tutorial, we will now DROP
the database in MySQL Workbench using the following SQL:
DROP DATABASE `dbtest`;


- Select the database, dbtest
- Select the Query window
- Type the query
DROP DATABASE dbtest;
- Click the Execute button
- The Output panel with the results of the statement
- The dbtest database has been dropped
References:
- W3Schools.com (no date) MySQL DROP DATABASE Statement. Available at: https://www.w3schools.com/mysql/mysql_drop_db.asp (Accessed: 9 June 2024).