Back
What's the easiest way to do this from my bash prompt?
mongo <dbname> --eval "db.dropDatabase()"
You can perform it from the mongodb console:
> use mydb; > db.dropDatabase();
> use mydb;
> db.dropDatabase();
Or, you can stop mongod and delete the data files from your data directory, then restart.
31k questions
32.8k answers
501 comments
693 users