how to delete db mongo shekk 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()"