db.dropDatabase()

Category: Databases & SQL

db.dropDatabase()

Delete the current database

Removes the active database and everything in it with no confirmation and no undo. Run show dbs first to be sure you are in the right place. Related: db.users.drop().
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.