Function: epg-delete-keys

epg-delete-keys is a byte-compiled function defined in epg.el.gz.

Signature

(epg-delete-keys CONTEXT KEYS &optional ALLOW-SECRET)

Documentation

Delete KEYS from the key ring.

Source Code

;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-delete-keys (context keys &optional allow-secret)
  "Delete KEYS from the key ring."
  (unwind-protect
      (progn
	(epg-start-delete-keys context keys allow-secret)
	(epg-wait-for-completion context)
	(let ((errors (epg-context-result-for context 'error)))
	  (if errors
	      (signal 'epg-error
		      (list "Delete keys failed"
			    (epg-errors-to-string errors))))))
    (epg-reset context)))