Skip to content

Instantly share code, notes, and snippets.

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 dublado/076078bd6621da164d9b30577a1a6c1e to your computer and use it in GitHub Desktop.
Save dublado/076078bd6621da164d9b30577a1a6c1e to your computer and use it in GitHub Desktop.
var collectionNames = db.getCollectionNames(), stats = [];
collectionNames.forEach(function (n) { stats.push(n); });
for (var c in stats) {
switch(stats[c]){
default:
if(stats[c].startsWith('profissionais')){
db.getSiblingDB("uptime").getCollection(stats[c]).drop()
print(stats[c]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment