Deleting uids from a public key

David Shaw dshaw at
Sat Jun 19 04:30:41 CEST 2004

On Fri, Jun 18, 2004 at 09:35:10PM -0400, Cory Donnelly wrote:
> I'm attempting to delete an out-of-date uid/e-mail address from my
> public key.  The deleting part is simple, keyservers however don't seem
> to recognize the change.
> I'm comfortable using deluid to remove a uid from my key, but I'm
> concerned that after doing so gpg doesn't ask for my password.  When I
> view my key with 'gpg --list-secret-keys' the second uid and associated
> e-mail address are gone, but when I export my public key and send it off
> to (either using the web interface or 'gpg
> --send-key') the uid doesn't seem to get removed.

Keyservers are add-only.  Once a key is on the keyservers, you can't
delete a user ID.

What you can do is revoke (rather than delete) the user ID.  This
marks the user ID as unusable, and it will be ignored (but still
present) from then on out.  Just use "revuid" instead of "deluid".


More information about the Gnupg-users mailing list