Factory Reset YubiKey Components

factory Reset Components #

OTP #

There are two OTP slots a YubiKey, the following commands will delete both slots with no prompts:

  • Slot 1: ykman otp delete -f 1
  • Slot 2: ykman otp delete -f 2

If these commands do not work, this guide can be followed to achieve said results: Reset OTP Application.

FIDO U2F / FIDO 2 #

This action wipes all FIDO credentials on the YubiKey, including FIDO U2F credentials, and removes the PIN code with no prompt: ykman fido reset -f.

If these commands do not work, this guide can be followed to achieve said results: Reset FIDO U2F / FIDO 2 Application.

PIV (Smart Card) #

This action wipes all data and restores factory settings for the PIV application with no prompt: ykman piv reset -f.

If these commands do not work, this guide can be followed to achieve said results: Reset PIV (Smart Card) Application.

OAUTH #

This action deletes all accounts and restores factory settings for the OATH application on the YubiKey with no prompt: ykman oauth reset -f.

If these commands do not work, this guide can be followed to achieve said results: Reset OAUTH Application.

OpenPGP #

This action wipes all OpenPGP data, and sets all PINs to their default values with no prompt: ykman openpgp reset -f.

If these commands do not work, this guide can be followed to achieve said results: Reset OpenPGP Application.

YubiHSM Auth #

This action wipes all data and restores factory setting for the YubiHSM Auth application on the YubiKey with no prompt: ykman hsmauth reset -f.

If these commands do not work, this guide can be followed to achieve said results: Reset YubiHSM Auth Application.