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