Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<gnupg_clearencryptkeysgnupg_decrypt>
^GnuPG FunctionsLast updated: Mon, 26 Oct 2026

gnupg_clearsignkeys

(PECL gnupg >= 0.5)

gnupg_clearsignkeys — Removes all keys which were set for signing before

Description

function gnupg_clearsignkeys(resource $identifier): bool

Parameters

identifier

The gnupg identifier, from a call to gnupg_init() or gnupg.

Return Values

Returns true on success or false on failure.

Examples

Example #1 Procedural gnupg_clearsignkeys() example

<?php
$res = gnupg_init();
gnupg_clearsignkeys($res);
?>

Example #2 OO gnupg_clearsignkeys() example

<?php
$gpg = new gnupg();
$gpg->clearsignkeys();
?>


<gnupg_clearencryptkeysgnupg_decrypt>
^GnuPG FunctionsLast updated: Mon, 26 Oct 2026