Function MongoCollection.deleteMany
Deletes all documents matching the query filter
. The returned result
identifies how many documents have been deleted.
DeleteResult deleteMany(T)
(
T filter,
DeleteOptions options = DeleteOptions .init
) @safe
if (!is(T == DeleteOptions));
See Also
Standards
https://www.mongodb.com/docs/manual/reference/command/delete/