remove database in mogodb code example Example: drop database mongodb command line mongo <dbname> --eval "db.dropDatabase()"