rnp_key_remove
PHP function
Edit on GitHub ✎
(PECL rnp >= 0.1.1)
Remove a key from keyring(s)
Description
rnp_key_remove(RnpFFI $ffi, string $key_fp, int $flags): bool
Note: you need to call rnp_save_keys() to write updated keyring(s) out.
Parameters
ffiFfi-description
key_fpKey fingerprint.
flagsSee
RNP_KEY_REMOVE_*constants. FlagRNP_KEY_REMOVE_SUBKEYSwill work only for the primary key and will remove all of its subkeys as well.
Return Values
Returns true on successFalseforfailure.