Deleting a Mongo Db database

Posted on 08-02-2017 by Nadir Latif


Source: https://docs.mongodb.com/manual/reference/command/drop/

To delete a Mongo Db database called test, enter the command: mongo. This will take you to the Mongo Db shell. Then enter the commands:

use test;
db.runCommand( { dropDatabase: 1 } );