how to delete a databse in mongodb shell code example
Example 1: drop mongodb database
db.dropDatabase()
Example 2: drop database mongodb command line
mongo <dbname> --eval "db.dropDatabase()"
db.dropDatabase()
mongo <dbname> --eval "db.dropDatabase()"