Skip to content

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 secret

    Deletes 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

sh
fnox remove OLD_TOKEN --dry-run

Remove a secret

sh
fnox remove OLD_TOKEN

Remove it from the staging profile

sh
fnox -P staging remove OLD_TOKEN

See also ​

MIT LicenseCopyright © 2026jdx.dev