gpg --delete-secret-keys alice@example.com

Category: Security & Hardening

gpg --delete-secret-keys alice@example.com

Permanently delete a secret key

Removes Alice's private key from your keyring. WARNING: this is irreversible; any data encrypted only to that key becomes unreadable forever, and you can no longer sign as Alice. Export a backup with gpg --export-secret-keys first. Public keys are removed separately with gpg --delete-keys.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.