Remove Database Tutorials

MongoDB Drop Database

In this post, We will learn How to delete the existing mongo database.MongoDB shell command `db.dropDatabase()` is used to drop an existing database and their associated data files. It will block other operations While dropping a database.The basic syntax for deleting a database isSyntax:db.dropDatabase()This command will drop the currently selected database. If we have not selected any database, It will drop the default database(test).Database List:If you want to get the […]... Read More »