Skip to content

Instantly share code, notes, and snippets.

@hengkiardo
Created February 2, 2016 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hengkiardo/f0ee23e91652e9cded68 to your computer and use it in GitHub Desktop.
Save hengkiardo/f0ee23e91652e9cded68 to your computer and use it in GitHub Desktop.
remove all database mongodb
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