cryptsetup luksRemoveKey /dev/sdb1

Category: Security & Hardening

cryptsetup luksRemoveKey /dev/sdb1

Remove a passphrase slot from a LUKS volume

Deletes a passphrase slot from the encrypted device, so that key can no longer unlock it. You must supply the key being removed; keep at least one valid key or the data is locked forever. Check remaining slots with cryptsetup luksDump /dev/sdb1.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.