delete One
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Parameters
the query filter to apply the the delete operation
Throws
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Parameters
the query filter to apply the the delete operation
the options to apply to the delete operation
Throws
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Since
3.6
Parameters
the client session with which to associate this operation
the query filter to apply the the delete operation
Throws
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
Note: Supports retryable writes on MongoDB server versions 3.6 or higher when the retryWrites setting is enabled.
Since
3.6
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