apptainer key remove
Remove a local public key from your local or the global keyring
Synopsis
The ‘key remove’ command will remove a local public key from the local or the global keyring.
apptainer key remove <fingerprint>
Examples
$ apptainer key remove D87FE3AF5C1F063FCBCC9B02F812842B5EEE5934
Options
-b, --both[=true|false] remove both public and private keys
-g, --global[=true|false] manage global public keys (import/pull/remove are restricted to root user or unprivileged installation only)
-h, --help[=true|false] help for remove
-d, --keysdir string set local keyring dir path, an alternative way is to set environment variable 'APPTAINER_KEYSDIR' (default "/home/runner/.apptainer/keys")
-p, --public[=true|false] remove public keys only
-s, --secret[=true|false] remove secret keys only
SEE ALSO
apptainer key - Manage OpenPGP keys
Auto generated by spf13/cobra on 1-Dec-2026