gpg --delete-keys --yes asks for confirmation
john doe
johndoe65534 at mail.com
Tue Aug 3 08:56:45 CEST 2021
On 8/2/2021 11:02 PM, Yuri Kanivetsky via Gnupg-users wrote:
> Hi,
>
> ```
> $ gpg --delete-keys --yes 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
> gpg (GnuPG) 2.2.29; Copyright (C) 2021 Free Software Foundation, Inc.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
>
> pub rsa4096/105BD0E739499BDB 2016-11-11 Piotr Kuczynski
> <piotr.kuczynski at gmail.com>
>
> Delete this key from the keyring? (y/N)
> ```
>
> Is this a bug or a feature? If the latter, why? How do I delete a key
> from a script?
>
By using the '--batch' option:
$ gpg --dry-run --batch --delete-keys --yes
7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Note that this e-mail is folded by my mailer.
--
John Doe
More information about the Gnupg-users
mailing list