(PECL gnupg >= 0.5)
gnupg_deletekey — Delete a key from the keyring
$identifier, string $key, bool $allow_secret): bool
identifierL'identifiant gnupg, généré par un appel à la fonction gnupg_init() ou à la fonction gnupg.
keyThe key to delete.
allow_secretIt specifies whether to delete secret keys as well.
   Cette fonction retourne true en cas de succès ou false si une erreur survient.
  
Exemple #1 Procedural gnupg_deletekey() example
<?php
$res = gnupg_init();
gnupg_deletekey($res, "8660281B6051D071D94B5B230549F9DC851566DC");
?>
Exemple #2 OO gnupg_deletekey() example
<?php
$gpg = new gnupg();
$gpg->deletekey("8660281B6051D071D94B5B230549F9DC851566DC");
?>