Created
August 5, 2014 21:06
-
-
Save ferronrsmith/f7a2a563cd1f1527c19f to your computer and use it in GitHub Desktop.
clean mongo db
This file contains 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 --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})' --port=27015 test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment