Last active
December 10, 2015 20:08
-
-
Save stengland/4485669 to your computer and use it in GitHub Desktop.
Quick way to drop a Mongo database from shell.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mongo <dbname> --eval "db.dropDatabase()" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Orignal stack overflow question here
http://stackoverflow.com/questions/8857276/how-do-i-drop-a-mongodb-database-from-the-command-line
More here http://stackoverflow.com/questions/8857276/how-do-i-drop-a-mongodb-database-from-the-command-line