opencode-uninstall
Uninstall opencode
TLDR
SYNOPSIS
opencode uninstall [options]
DESCRIPTION
opencode uninstall removes the opencode binary and, by default, its supporting files from the current system: configuration, cached data, and session history. The `--keep-config` and `--keep-data` flags preserve specific categories of files, which is useful when reinstalling or switching channels.Use `--dry-run` first to audit exactly which paths will be deleted before running the real uninstall.
PARAMETERS
-c, --keep-config
Keep configuration files. Default: false.-d, --keep-data
Keep session data and snapshots. Default: false.--dry-run
Show what would be removed without removing anything. Default: false.-f, --force
Skip confirmation prompts. Default: false.--print-logs
Print logs to stderr.--log-level LEVEL
Log level: `DEBUG`, `INFO`, `WARN`, or `ERROR`.-h, --help
Show help.-v, --version
Show version number.
CAVEATS
Without `--keep-config` or `--keep-data`, this operation is irreversible: local session data, configuration, and cached credentials are permanently deleted. If opencode was installed via a package manager (e.g. Homebrew), uninstall it through that manager instead.
SEE ALSO
opencode(1), opencode-upgrade(1), opencode-models(1)
