Skip to content

Instantly share code, notes, and snippets.

@csirac2
Created November 8, 2011 05:32
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 csirac2/1347094 to your computer and use it in GitHub Desktop.
Save csirac2/1347094 to your computer and use it in GitHub Desktop.
drop matching databases
use webs
db.map.find({_id : /^ParentWeb/i}).forEach(function (thing) { db = db.getMongo().getDB(thing.hash); db.dropDatabase(); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment