how to delete a db in mongodb code example
Example 1: drop mongodb database
db.dropDatabase()
Example 2: how to drop db in mongo shell
use DB_NAME // go to the db you want to delete
db.dropDatabase()
show dbs
// droppped db will not be shown
Example 3: delete collection mongodb
db.collection.drop()