summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-05-27 10:40:38 +0200
committerWerner Koch <wk@gnupg.org>2019-05-27 10:40:38 +0200
commitcc6069ac6ecd57dcbb808f28d54fd9f89dc55014 (patch)
tree82fd37bf1dd0a417e9c145d7f8c8d9e348168052 /doc
parentagent: Stop scdaemon after reload when disable_scdaemon. (diff)
downloadgnupg2-cc6069ac6ecd57dcbb808f28d54fd9f89dc55014.tar.xz
gnupg2-cc6069ac6ecd57dcbb808f28d54fd9f89dc55014.zip
gpg: Allow deletion of subkeys with --delete-[secret-]key.
* common/userids.c (classify_user_id): Do not set the EXACT flag in the default case. * g10/export.c (exact_subkey_match_p): Make static, * g10/delkey.c (do_delete_key): Implement subkey only deleting. -- GnuPG-bug-id: 4457
Diffstat (limited to 'doc')
-rw-r--r--doc/gpg.texi10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/gpg.texi b/doc/gpg.texi
index fd7dcddf0..c9262c66a 100644
--- a/doc/gpg.texi
+++ b/doc/gpg.texi
@@ -404,7 +404,10 @@ functionality is also available as the subcommand "passwd" with the
@opindex delete-keys
Remove key from the public keyring. In batch mode either @option{--yes} is
required or the key must be specified by fingerprint. This is a
-safeguard against accidental deletion of multiple keys.
+safeguard against accidental deletion of multiple keys. If the
+exclamation mark syntax is used with the fingerprint of a subkey only
+that subkey is deleted; if the exclamation mark is used with the
+fingerprint of the primary key the entire public key is deleted.
@item --delete-secret-keys @var{name}
@opindex delete-secret-keys
@@ -413,7 +416,10 @@ specified by fingerprint. The option @option{--yes} can be used to
advice gpg-agent not to request a confirmation. This extra
pre-caution is done because @command{@gpgname} can't be sure that the
secret key (as controlled by gpg-agent) is only used for the given
-OpenPGP public key.
+OpenPGP public key. If the exclamation mark syntax is used with the
+fingerprint of a subkey only the secret part of that subkey is
+deleted; if the exclamation mark is used with the fingerprint of the
+primary key only the secret part of the primary key is deleted.
@item --delete-secret-and-public-key @var{name}