13Şub
Why "pubring.kbx" contains keys I removed?
With VirtualBox is installed as guest Ubuntu Desktop 22.04.5 LTS x86_64
About gpg
gpg --version
gpg (GnuPG) 2.2.27
libgcrypt 1.9.4
...
Home: /home/manueljordan/.gnupg
To remove some keys, I executed the following commands:
gpg --delete-secret-keys <key ID>
gpg --delete-key <key ID>
Where the <key ID>
can be either a full or long fingerprint
Once the two previous commands executed successfully, the two following commands are executed to confirm that the public and secret keys were removed:
gpg --list-secret-keys
gpg --list-public-keys
And as expected, the removed keys do not appear anymore.
About the two previous commands, for each one their outputs have as the first line the following content:
/home/manueljordan/.gnupg/pubring.kbx
If I executed cat pubring.kbx
some of the removed users are still listed (I mean: the encrypted content shows some emails of the users that were removed through their public and secret keys)
Why does this happen? How to fix?