Answers for "pymongo delete all collections"

4

mongodb remove all from collection

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

delete all documents in a collection mongodb

#delete all the items of a given collection 
db.campaigns.deleteMany({})
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language