Why the "pubring.kbx" file contains some removed keys yet?

Hello Friends

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
Copyright (C) 2021 Free Software Foundation, Inc.
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/manueljordan/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

To remove some keys were 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 executed the two previous commands in peace 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. Until here no reason to do create this post

About the two previous commands, for each one their outputs have as the first line the following content:

/home/manueljordan/.gnupg/pubring.kbx

Just being curious: if is executed the cat pubring.kbx command appears some removed users yet (I mean: the encrypted content shows some emails of the users that were removed through their public and secret keys)

Why happen this? How to fix?

1 Like