Created
July 13, 2016 02:58
-
-
Save amccarty/2ff563751dceb5b62ebb451b36ba5f44 to your computer and use it in GitHub Desktop.
Drop ALL mongo DBs (no prompt, no backup, just go)
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
#!/bin/bash | |
mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment