Skip to content

Instantly share code, notes, and snippets.

@x
Created March 21, 2014 21:19
Show Gist options
  • Save x/9696718 to your computer and use it in GitHub Desktop.
Save x/9696718 to your computer and use it in GitHub Desktop.
Drop All Databases Mongo
db.getMongo().getDBNames().forEach(function(i){db.getMongo().getDB(i).dropDatabase()})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment