MongoDB delete Database

To delete a database in MongoDB, run

mongo
use DBNAME
db.dropDatabase()

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *