Generate a revocation (official manual)
Revoke key
Official GnuPG key-management commands, including gpg --generate-revocation. To actually revoke the key, import the certificate with gpg --import, then publish the updated public key.
Open Generate a revocation (official manual)