Answers for "mongodb drop all documents in collection without code"

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

Code answers related to "mongodb drop all documents in collection without code"

Browse Popular Code Answers by Language