Answers for "mongo remove all from table"

4

mongodb remove all from collection

db.collection.remove({})
Posted by: Guest on December-21-2020
0

mongo remove all tables

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

Code answers related to "mongo remove all from table"

Browse Popular Code Answers by Language