- Reference >
- mongo Shell Methods >
- Database Methods >
- db.dropDatabase()
db.dropDatabase()¶
- db.dropDatabase()¶
Removes the current database. Does not change the current database, so the insertion of any documents in this database will allocate a fresh set of data files.
Changed in version 2.6: This command does not delete the users associated with the current database. To drop the associated users, run the dropAllUsersFromDatabase command in the database you are deleting.
See also