Do Folheto de dicas de GPG de Charles Lockhart :
I've used
User Name
as being the name associated with the key. Sorry that isn't very imaginative. I think gpg is pretty wide in its user assignments, e.g., the name for my private key is “Charles Lockhart”, but I can reference that by just putting in “Lockhart”. That doesn't make any sense, sorry.︙
to delete a public key (from your public key ring):
$ gpg --delete-key "User Name"
This removes the public key from your public key ring.
NOTE: If there is a private key on your private key ring associated with this public key, you will get an error! You must delete your private key for this key pair from your private key ring first.to delete a private key (a key on your private key ring):
$ gpg --delete-secret-key "User Name"
This deletes the secret key from your secret key ring.