[openpgp] Add delete key method when using gpgme
This commit is contained in:
@@ -181,3 +181,8 @@ class GPGME:
|
|||||||
key = self.get_key(fingerprint)
|
key = self.get_key(fingerprint)
|
||||||
|
|
||||||
return KeyringItem(key)
|
return KeyringItem(key)
|
||||||
|
|
||||||
|
def delete_key(self, fingerprint):
|
||||||
|
key = self.get_key(fingerprint)
|
||||||
|
with gpg.Context(**self._context_args) as context:
|
||||||
|
context.op_delete(key, True)
|
||||||
|
|||||||
Reference in New Issue
Block a user