Drop every MongoDB database [snippet]
20
Junho
2020
Occasionally useful during development:
db.getMongo().getDBNames().forEach(dbName => db.getSiblingDB(dbName).dropDatabase())
Occasionally useful during development:
db.getMongo().getDBNames().forEach(dbName => db.getSiblingDB(dbName).dropDatabase())