Answers for "how to drop all databases in mongodb"

0

remove all db entries from mongo

db.users.remove({})
Posted by: Guest on June-28-2021
3

drop database mongodb command line

mongo <dbname> --eval "db.dropDatabase()"
Posted by: Guest on July-19-2020

Code answers related to "how to drop all databases in mongodb"

Browse Popular Code Answers by Language