Method DeleteKey
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.Encryption.dll
DeleteKey(Guid, CancellationToken)
Removes the key document with the given UUID (BSON binary subtype 0x04) from the key vault collection.
public DeleteResult DeleteKey(Guid id, CancellationToken cancellationToken = default)
Parameters
id
Guid
The id.
cancellationToken
CancellationToken
The cancellation token.
Returns
Returns the result of the internal deleteOne() operation on the key vault collection.