Show / Hide Table of Contents

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.

InvalidOperationException

The connected YubiKey does not support CredentialManagement, or the PIN was invalid, or there was no KeyCollector.

OperationCanceledException

The user canceled the operation while collecting the PIN.

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.

In this article
Back to top Generated by DocFX