How To Drop Data Base

Add Your Heading Text Here The dropDatabase() Method MongoDB db.dropDatabase() command is used to drop a existing database. Syntax Basic syntax of dropDatabase() command is as follows − db.dropDatabase() This will delete the selected database. If you have not selected any database, then it will delete default ‘test’ database. Example First, check the list Read more…