Answers for "how to delete all mongodb engine"

C
0

delete all of something in mongo shell

Removes ALL: db.<collectionName>.remove({})
Example: db.users.remove({id: 73465872012183})
Posted by: Guest on January-19-2021
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

Code answers related to "how to delete all mongodb engine"

Code answers related to "C"

Browse Popular Code Answers by Language