Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use mydb;
- db.
- getCollectionNames().
- filter( c => c.match("^\d{4}-\d{2}-\d{2}$")).
- forEach(function(c){db[c].drop()})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement