If you want to delete a database that you created, you can use the DROP DATABASE command.
When you use this command, it will remove the entire database, including all of its tables, data, and associated objects.
Note:
This command will permanently delete the database, along with all its tables, data, and associated objects.
Be careful, as this action cannot be undone.
Syntax:
DROP DATABASE database_name;
Command:
DROP DATABASE PersonDB;
Output:
Query OK, 0 rows affected.
