Answers for "mongo database clear"

Go
0

mongo remove all dbs

mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})'
Posted by: Guest on September-14-2020

Browse Popular Code Answers by Language