14
3
I would like to delete an OpenPGP subkey of mine on Linux (L)Ubuntu 16.04 in GnuPG. It's a kind of "blank" useless key (see below key 33333333
). I have not uploaded it to key servers, so I think it's ok to delete without revoking it.
gpg2 --edit-key me@example.com
sec rsa4096/11111111
created: 2016-12-12 expires: 2017-12-12 usage: SC
confiance : ultime validity: ultimate
ssb rsa4096/22222222
created: 2016-12-12 expires: 2017-12-12 usage: E
ssb rsa4096/33333333
created: 2016-12-12 expires: never usage:
ssb rsa4096/44444444
créé : 2016-12-12 expires: 2017-12-12 usage: S
[ ultimate ] (1). me <me@example.com>
I tried "gpg> delkey 33333333", but I had this message :
You must select at least one key.
(Use the 'key' command.)
then gpg> key 33333333
, and I had this result (same result as list
command):
sec rsa4096/11111111
created: 2016-12-12 expires: 2017-12-12 usage: SC
confiance : ultime validity: ultimate
ssb rsa4096/22222222
created: 2016-12-12 expires: 2017-12-12 usage: E
ssb rsa4096/33333333
created: 2016-12-12 expires: never usage:
ssb rsa4096/44444444
créé : 2016-12-12 expires: 2017-12-12 usage: S
[ ultimate ] (1). me <me@example.com>
What should I do next?
1On the Linux command line (and in general), you can get English language outpuut for pretty much all applications by prefixing
LANG=C
, eg.LANG=C gpg2 --edit-key ...
. Alternatively, "switch" a shell to English language by runningexport LANG=C
. – Jens Erat – 2016-10-06T21:51:21.247