Created
December 13, 2020 10:58
-
-
Save zlocate/a0594e60827a86a637df9873e52dd62a to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| # Drops all MongoDB databases | |
| 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