MongoDB – Drop Database:

We can drop a database in mongoDB along with the associated datafiles.

But this will not delete the associate users in that database in version 2.6. To drop those users, we need to use dropAllUsersFromDatabase command.

Check the database you want to delete.

Switch to database “imongo” before you drop the database.

Verify if the database is existing by using the command show dbs.