delete database local mongodb code example
Example 1: drop mongodb database
db.dropDatabase()
Example 2: drop database mongodb command line
mongo --eval "db.dropDatabase()"
db.dropDatabase()
mongo --eval "db.dropDatabase()"