Back to SQL Notes
Topic #48

SQL Drop DB

DROP DATABASE permanently deletes a database and everything inside it. Learn when and why you would use it, and why backups come first.


The SQL DROP DATABASE Statement

The DROP DATABASE statement is used to permanently delete an existing SQL database.

Note: Be careful before dropping a database! Dropping a database deletes the database and all its content (tables, views, stored procedures, and data)!

Syntax

DROP DATABASE databasename;

Tip: You need administrative privileges to drop a database.


DROP DATABASE Example

The following SQL statement drops an existing database named "testDB":

Example

DROP DATABASE testDB;

Tip: Once a database is dropped, you can check that it is removed from the list of databases with: SHOW DATABASES; (MySQL) or SELECT name FROM sys.databases; (SQL Server).

Want to go beyond the notes?

Join Coding Now Tech Institute's SQL course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

SQL Drop DB – FAQs

Quick answers about learning SQL Drop DB in SQL.

This free note from Coding Now Tech Institute explains SQL Drop DB in SQL — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every SQL topic on Coding Now Tech Institute, including SQL Drop DB, is 100% free with no signup required.
With focused practice, most students grasp SQL Drop DB in 1–3 days from these notes; pairing it with Coding Now Tech Institute's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the Coding Now Tech Institute Community (/community) — expert instructors answer within 24 hours.
Call NowEnroll Now