How to Remove a gpg key?

I installed a new gpg key then found out it was not needed after all. How do I remove the offending key?
I used ‘gpg --recv-keys EB4F9E5A to install it’.

https://archlinux.org/pacman/pacman-key.8.html

 pacman-key -d  EB4F9E5A
1 Like

Excellent. Thanks. Did not even think of looking over at arch. :woozy_face:

Nope. The Pacman keyring and public keyring are two different things.

Then use

gpg --delete-key EB4F9E5A

See man gpg

2 Likes

Now it’s gone. Using pacman-key -d EB4F9E5A gave no errors so I thought it was gone.

Using gpg --delete-key EB4F9E5A definitely got rid of it.

Thanks @Yochanan

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.