Skip to content

Instantly share code, notes, and snippets.

@intvoker
Created November 6, 2015 01:50
Show Gist options
  • Save intvoker/eaf12d42d185f87db9a8 to your computer and use it in GitHub Desktop.
Save intvoker/eaf12d42d185f87db9a8 to your computer and use it in GitHub Desktop.
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('statistics_results_') == 0){
db[collectionName].drop()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment