How do I delete secret subkeys correctly?

Peter Lebbing peter at
Wed Apr 10 17:24:24 CEST 2019

On 10/04/2019 15:25, Matheus Afonso Martins Moreira wrote:
> If not, what is the correct way to do this?

$ gpg --edit-key [KEYID]
gpg> key N
gpg> delkey

Where N is the number of the subkey you want to delete; they are
numbered 1 for the first one listed and so on. It will indicate with a
"*" next to the "ssb" line which one(s) you have selected. Deselect by
another "key N"; it's a toggle.



I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at <>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Gnupg-users mailing list