deleteMany
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
Return
the result of the remove many operation
Parameters
the query filter to apply the the delete operation
the options to apply to the delete operation
Throws
if the write failed due some other failure specific to the delete command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
Return
the result of the remove many operation
Parameters
the query filters to apply the the delete operation
the options to apply to the delete operation
Throws
if the write failed due some other failure specific to the delete command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
Return
the result of the remove many operation
Parameters
the client session with which to associate this operation
the query filter to apply the the delete operation
the options to apply to the delete operation
Throws
if the write failed due some other failure specific to the delete command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
Return
the result of the remove many operation
Parameters
the client session with which to associate this operation
the query filters to apply the the delete operation
the options to apply to the delete operation
Throws
if the write failed due some other failure specific to the delete command
if the write failed due being unable to fulfil the write concern
if the write failed due some other failure