9.11. Removing a Clevis pin from a LUKS-encrypted volume
You can remove the metadata created by the clevis luks bind command and also wipe a key slot that contains a passphrase added by Clevis.
In RHEL, you can use a single command to remove both the metadata created by the binding step and wipe the key slot on a selected device. See the clevis-luks-unbind(1) man page for more information.
Prerequisites
- A LUKS-encrypted volume with a Clevis binding.
Procedure
Remove a Clevis pin from a LUKS-encrypted volume, for example:
# clevis luks unbind -d /dev/sda2 -s 1
Verification
The output of the
clevis luks listcommand is empty, for example:# clevis luks list -d /dev/sda2Alternatively, you can check that an output of the
cryptsetup luksDumpcommand does not contain theclevisstring.