Answers for "mongo command line delete a specific record"

Go
0

mongodb delete matching documents

db.products.remove( { qty: { $gt: 20 } } )
Posted by: Guest on April-27-2021
-1

delete one mongo db

db.collection.deleteOne() 
# deletes the first document that matches the filter.
# Use a field that is part of a unique index such as _id for precise deletions.
Posted by: Guest on November-01-2021

Code answers related to "mongo command line delete a specific record"

Browse Popular Code Answers by Language