Answers for "mongodb delete all documents in all tables where id"

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
0

find All and delete in mongodb

db.products.remove( { qty: { $gt: 20 } } )
Posted by: Guest on January-29-2021

Code answers related to "mongodb delete all documents in all tables where id"

Browse Popular Code Answers by Language