Files
cheatsheet-tldr/tldr/opencode-uninstall
2026-03-01 00:30:22 +00:00

34 lines
658 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# opencode uninstall
> Uninstall OpenCode and remove all related files.
> More information: <https://opencode.ai/docs/cli#uninstall>.
- Uninstall OpenCode:
`opencode uninstall`
- Uninstall and keep configuration files:
`opencode uninstall {{[-c|--keep-config]}}`
- Uninstall and keep session data and snapshots:
`opencode uninstall {{[-d|--keep-data]}}`
- Show what would be removed without removing:
`opencode uninstall --dry-run`
- Skip confirmation prompts:
`opencode uninstall {{[-f|--force]}}`
- Display help:
`opencode uninstall {{[-h|--help]}}`