Help me on CommandLine Key Deletion in GPG 1.0.7

Werner Koch wk at gnupg.org
Tue Jul 23 13:13:01 CEST 2002


On Tue, 23 Jul 2002 13:40:12 +0530 (IST), Thanga Prakash S said:

>> gpg --batch --comment "" --status-fd 1 --no-tty --verbose --delete-secret-and-public-key -- F7A0E344A285FD91CEFD4B96F35ED62BE91C6FC1

> gpg: can't do that in batchmode
> gpg: F7A0E344A285FD91CEFD4B96F35ED62BE91C6FC1: delete key failed: eof

> 	Why the key deletion fails in GPG? how to correct it?

    else if( opt.batch && secret )
	log_error(_("can't do that in batchmode\n"));

Deleting a secret key in batch mode is deliberately inhibited.  I am
note sure why I did it this way.  You may want to remove these 2 lines.

Because gpgme allows to delete a secret key we should better remove
this extra precaution.

Salam-Shalom,

   Werner





More information about the Gnupg-devel mailing list