how to delete a mongodb database ubuntu 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()"