翻译或纠错本页面
- Reference >
- mongo Shell Methods >
- 数据库相关方法 >
- db.dropDatabase()
db.dropDatabase()¶
On this page
Behavior¶
The db.dropDatabase() wraps the dropDatabase command.
警告
This command obtains a global write lock and will block other operations until it has completed.
在 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.