DeleteCredential Method
DeleteCredential(CredentialId)
This performs the deleteCredential
subcommand of the
authenticatorCredentialManagement
command. It deletes the one
credential represented by the given credentialId
.
C#
public void DeleteCredential(CredentialId credentialId)
Parameters
Type | Name | Description |
---|---|---|
CredentialId | credentialId | The ID of the credential to delete. |
Exceptions
Type | Condition |
---|---|
Fido2Exception | The YubiKey was not able to delete the specified credential. |
System.InvalidOperationException | The connected YubiKey does not support CredentialManagement, or the PIN was invalid, or there was no KeyCollector. |
System.OperationCanceledException | The user canceled the operation while collecting the PIN. |
System.Security.SecurityException | The PIN retry count was exhausted. |
Remarks
See the User's Manual entry on credential management.
If there is no credential with the given credentialId
on the
YubiKey, this method will do nothing.