How to drop mongodb Database

How to drop mongodb Database

In this topic, We will see how to drop mongodb database


You can drop mongodb database using below command


This will deleted the selected database.


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.

Leave a Reply
Your email address will not be published. *