DeleteKeySet Method
DeleteKeySet(Byte, Boolean)
Delete the key set with the given keyVersionNumber
. If the key
set to delete is the last SCP03 key set on the YubiKey, pass
true
as the isLastKey
arg.
C#
public void DeleteKeySet(byte keyVersionNumber, bool isLastKey = false)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | keyVersionNumber | The number specifying which key set to delete. |
System.Boolean | isLastKey | If this key set is the last SCP03 key set on the YubiKey, pass
|
Remarks
The key set used to create the SCP03 session cannot be the key set to
be deleted, unless both of the other key sets have been deleted, and
you pass true
for isLastKey
. In this case, the key will
be deleted but the SCP03 application on the YubiKey will be reset
with the default key.