mongodb compass delete all code example Example: mongodb remove all from collection db.collection.remove({})