delete database from mongodb from 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()"