Created
November 8, 2011 05:32
-
-
Save csirac2/1347094 to your computer and use it in GitHub Desktop.
drop matching databases
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
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