MongoDB Method: db.collection.deleteOne()
Delete a single document. We can select document(s) by filter and delete the first one using this method. If multiple documents match the filter criteria, then the first one will be deleted.
Delete a single document. We can select document(s) by filter and delete the first one using this method. If multiple documents match the filter criteria, then the first one will be deleted.