Last active
November 5, 2015 22:50
-
-
Save intvoker/312b04d032a1150084e2 to your computer and use it in GitHub Desktop.
This file contains 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 vlaad_production | |
db.statistics_port_states.drop() | |
db.statistics_summaries.drop() | |
db.subscriptions.drop() | |
db.tests.drop() | |
var collectionNames = db.getCollectionNames(); | |
for(var i = 0, len = collectionNames.length; i < len ; i++){ | |
var collectionName = collectionNames[i]; | |
if(collectionName.indexOf('project_stats_') == 0){ | |
db[collectionName].drop() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment