clear db from mongo console code example
Example: 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
use DB_NAME // go to the db you want to delete
db.dropDatabase()
show dbs
// droppped db will not be shown