How to delete a secret key in batch mode?

David Shaw dshaw at jabberwocky.com
Thu Sep 15 03:00:30 CEST 2005


On Thu, Sep 15, 2005 at 11:38:22AM +1200, Bernard wrote:
> Hi,
> 
> I have added a secret key in batch mode.
> 
> Now I want to delete it in batch mode.
> 
> gpg prints an error:
> 
> gpg: can't do that in batchmode
> gpg: (unless you specify the key by fingerprint)
> 
> The command I use is:
> 
> C:\gnupg\gpg.exe --homedir "\tmp" --yes --batch --delete-secret-key
> 1CBB4C01
> 
> It looks like I am doing what the error message requests: Specifying
> the key by fingerprint.
> 
> Am I overlooking anything?

1CBB4C01 is not a fingerprint.  Do this:

  gpg --fingerprint 1CBB4C01

The resulting value is a fingerprint.

David



More information about the Gnupg-users mailing list