Answers for "drop all records mongodb"

0

remove all db entries from mongo

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

find All and delete in mongodb

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

Browse Popular Code Answers by Language