Mailing List Archive

gpg --delete-keys --yes asks for confirmation
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@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?

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpg --delete-keys --yes asks for confirmation [ In reply to ]
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@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

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users