fnox remove
- Usage:
fnox remove [-g --global] [-n --dry-run] <KEY> - Aliases:
rm,delete
Remove a secret from a config file
Deletes KEY from the config file in the current directory, or the global config with --global, keeping comments and formatting. For a named write profile, fnox edits that profile's table, using fnox.<profile>.toml when that file exists. The value stored at a remote provider is not deleted or revoked.
Arguments
<KEY>— Secret to remove
Flags
-g --global— Remove from the global config file (~/.config/fnox/config.toml)-n --dry-run— Show what would be removed without changing the file-h --help— Print help
Examples
Preview the change
sh
fnox remove OLD_TOKEN --dry-runRemove a secret
sh
fnox remove OLD_TOKENRemove it from the staging profile
sh
fnox -P staging remove OLD_TOKEN