delete documents in mongo with where condition in mongodb code example Example: mongodb delete matching documents db.products.remove( { qty: { $gt: 20 } } )