mongodb find and delete code example
Example 1: mongodb remove all from collection
db.collection.remove({})
Example 2: mongodb delete all documents
db.collection.delete_many( { } );
Example 3: mango to delete a collection
db.CollectionName.drop()
Example 4: find All and delete in mongodb
db.products.remove( { qty: { $gt: 20 } } )