Custom Search

Tuesday, May 7, 2019

How to drop a MongoDb database from Command Line

use

db.getUsers()
db.getRoles()
db.getCollectionNames()

db.dropAllUsers()
db.dropAllRoles()
db.dropDatabase()

No comments:

Post a Comment