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