Tips, tricks, cheatsheets
You cannot delete keys nor modify UIDs for keys uploaded to PGP key servers.
$ gpg --list-keys $ gpg --edit-key <keyID> gpg> adduid Real name: <NAME SURNAME> Email address: <firstname.lastname@example.org> Comment: <COMMENT> Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o You need a passphrase to unlock the secret key for user: "NAME SURNAME <email@example.com>"
gpg> uid <new uid number> gpg> trust Your decision? 5 Do you really want to set this key to ultimate trust? (y/N) y gpg> uid <new uid number>
gpg> uid <old uid number> gpg> revuid Really revoke this user ID? (y/N) y Your decision? 4 Enter an optional description; end it with an empty line: <description> Is this okay? (y/N) y
gpg> save $ gpg --keyserver hkp://pgp.mit.edu --send-keys <keyID>