fnox remove
- Usage:
fnox remove [FLAGS] [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
--file <FILE>— Remove the file stored for this path instead of a secretDeletes its entry from
[files]in the global config. The file at PATH and any stored content file or remote value are left in place.-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
fnox remove OLD_TOKEN --dry-runRemove a secret
fnox remove OLD_TOKENRemove it from the staging profile
fnox -P staging remove OLD_TOKEN