Mongo Remove All Dbs

[Solved] Mongo Remove All Dbs | Go - Code Explorer | yomemimo.com
Question : mongo remove all dbs

Answered by : proud-platypus-jijb66rld8la

mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})'

Source : | Last Update : Mon, 21 Sep 20

Answers related to mongo remove all dbs

Code Explorer Popular Question For Go