In this topic, We will see how to drop mongodb database
Syntax
You can drop mongodb database using below command
db.dropDatabase()
This will deleted the selected database.
Example
If you will above I have first selected my database and then use drop command , If you see that I use db.dropdatabase() so it throws error as commands are case sensitive.
Hope you like my this blog so please share with your friends and visit us again.