mongodb/mongodb-drop-database

Drop Database

Delete the entire database

mongodb
drop
database

Command

db.dropDatabase()

Explanation

Removes the entire database including all collections and documents. Useful for cleaning up development environments.

Examples

Delete the current database

db.dropDatabase()