Guest User

Untitled

a guest
Jun 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. db.getCollectionNames().forEach( function(collection_name) {
  2. if (collection_name.indexOf("system.") == -1)
  3. db[collection_name].drop();
  4. else
  5. db.collection_name.remove({});
  6. });
Add Comment
Please, Sign In to add comment