<div dir="ltr"><div class="gmail_extra"><dt style="color:rgb(0,0,0);font-family:'Times New Roman'">Hi, </dt><dt style="color:rgb(0,0,0);font-family:'Times New Roman'"><br></dt><dt><span style="color:rgb(0,0,0);font-family:'Times New Roman'">I've been trying to use the </span><font color="#000000" face="Times New Roman">GPGME_DELETE_FORCE flag in gpgme_op_delete_ext, but I'm still getting not one, but two "Do you really want to delete..." prompts popping up, one for the secret key, one for the sub-key. I am using GPGme version 1.11.1 in combination with gpg 2.2.8 (as confirmed by runtime query of the versions) built from the git repos by checking out the following tags:</font></dt><dt><span style="color:rgb(0,0,0);font-family:'Times New Roman'">git checkout npth-1.5</span><br></dt><dt><span style="color:rgb(0,0,0);font-family:'Times New Roman'">git checkout libgpg-error-1.31</span><br></dt><dt><span style="color:rgb(0,0,0);font-family:'Times New Roman'">git checkout libgcrypt-1.8.2</span><br></dt><dt><span style="color:rgb(0,0,0);font-family:'Times New Roman'">git checkout libksba-1.3.5</span><br></dt><dt><span style="color:rgb(0,0,0);font-family:'Times New Roman'">git checkout libassuan-2.5.1</span><br></dt><dt><span style="color:rgb(0,0,0);font-family:'Times New Roman'">git checkout gnupg-2.2.8</span><br></dt><dt><span style="color:rgb(0,0,0);font-family:'Times New Roman'">git checkout gpgme-1.11.1</span><br></dt><dt><br></dt><dt>I found this reference in the gpgme 1.10.0 changelog:</dt><table border="0" cellpadding="0" cellspacing="0" style="font-family:Verdana,sans-serif"><tbody><tr><td class="gmail-rblock" style="white-space:pre;font-family:Consolas,'DejaVu Sans Mono','Droid Sans Mono',Monaco,monospace;vertical-align:top"><span class="gmail-insert" style="background-color:rgb(255,255,255)"><font color="#000000"><b>src/engine-gpg.c (gpg_delete): Likewise. Implement GPGME_DELETE_FORCE.</b></font></span></td></tr><tr><td class="gmail-lblock" style="white-space:pre;font-family:Consolas,'DejaVu Sans Mono','Droid Sans Mono',Monaco,monospace;vertical-align:top"></td><td style="white-space:pre;font-family:Consolas,'DejaVu Sans Mono','Droid Sans Mono',Monaco,monospace;vertical-align:top"><span style="background-color:rgb(255,255,255)"><font color="#000000"> </font></span></td><td class="gmail-rblock" style="white-space:pre;font-family:Consolas,'DejaVu Sans Mono','Droid Sans Mono',Monaco,monospace;vertical-align:top"><span class="gmail-insert" style="font-weight:bold;background-color:rgb(255,255,255)"><font color="#000000"> *
</font></span></td></tr></tbody></table><dt><font color="#000000" face="Times New Roman" style="background-color:rgb(255,255,255)">the key deletes from the keyring as expected, but the behavior is as if the flag has not been implemented in 1.11.1. Should I expect the GPGME_DELETE_FORCE flag to work as described here?</font></dt><dt><font color="#000000" face="Times New Roman" style="background-color:rgb(255,255,255)"><br></font></dt><dt><strong style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">gpgme_op_delete_ext</strong><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </span><em style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">(<span class="gmail-nolinebreak" style="white-space:nowrap">gpgme_ctx_t</span> <var>ctx</var>, const <span class="gmail-nolinebreak" style="white-space:nowrap">gpgme_key_t</span> <var>key</var>, unsigned int <var>flags</var>)</em><br></dt><dd style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><p><small>SINCE:</small> 1.9.1</p><p>The function <code>gpgme_op_delete_ext</code> deletes the key <var>key</var> from the key ring of the crypto engine used by <var>ctx</var>.</p><p><var>flags</var> can be set to the bit-wise OR of the following flags:</p><dl compact><dt><code>GPGME_DELETE_ALLOW_SECRET</code></dt><dd><p><small>SINCE:</small> 1.9.1</p><p>If not set, only public keys are deleted. If set, secret keys are deleted as well, if that is supported.</p></dd><dt><code>GPGME_DELETE_FORCE</code></dt><dd><p><small>SINCE:</small> 1.9.1</p><p>If set, the user is not asked to confirm the deletion.</p></dd><dd><p><br></p></dd><dd><p>Thanks,</p></dd><dd><p><br></p></dd><dd><p><br></p></dd></dl></dd></div></div>