GPGME: deletion of a key.

Martin Galpin ep0ch@evobb.com
Fri Jan 3 20:46:02 2003


I have consulted the documentation for the deletion of a key from the keyring, 
but the code doesn't seem to have an effect:

<code>
	  GpgmeCtx ctx;
	  GpgmeKey key;	
     GpgmeError err = gpgme_new (&ctx);

     if (!err)
       {
         err = gpgme_op_keylist_start (ctx, "Martin", 0);
         while (!err && (err = gpgme_op_keylist_next (ctx, &key)) != 
GPGME_EOF)
           {

					 gpgme_opt_delete(ctx, key, 1);
             gpgme_key_release (key);
           }
         gpgme_release (ctx);
       }
</code>

any ideas?

Thanks alot...
Martin