Skip to content

Instantly share code, notes, and snippets.

@blasterpal
Created December 20, 2010 13:40
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 blasterpal/748387 to your computer and use it in GitHub Desktop.
Save blasterpal/748387 to your computer and use it in GitHub Desktop.
Clean Mongo Tmp Mapreduce
mongo --eval "db.getCollectionNames().forEach(function(name){if(name.match(/^tmp/)){db[name].drop()}})" cms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment