While you can adding passphrases, you can also remove it. This section guides you on how to remove new passphrase into a target device.
You need to identify the correct partition for the passphrase changes. Visit the following link if you need the know how.
Now that you got your device name, it's time to remove the passphrase for that encrypted partition. In this example, we will be using sda5
as our dummy device. There are 2 ways to do it.
You may remove the passphrase by providing the passphrase itself. Cryptsetup is intelligently enough to remove the passphrase from the correct slot.
The command is:
$ cryptsetup luksRemoveKey /path/to/device
Based on our example, it is:
$ cryptsetup luksRemoveKey /dev/sda5
If you know which slow you are, you may kill it by using the following command:
$ cryptsetup luksKillSlot /path/to/device <slot ID>
Based on our example, assuming the passphrase is in slot 2, it is:
$ cryptsetup luksKillSlot /dev/sda5 2
That's all about removing cryptsetup passphrase for encrypted medium.