mongodb get and delete code example
Example 1: delete an item from db collection mongodb
db.collection.remove(
<query>,
{
justOne: <boolean>,
writeConcern: <document>
}
)
Example 2: find All and delete in mongodb
db.products.remove( { qty: { $gt: 20 } } )