Uninstall
Use the uninstall method that matches how you installed Knowns. Uninstalling the CLI does not delete project context by default.
On this page
Use the uninstall method that matches how you installed Knowns. Uninstalling the CLI does not delete project context by default.
Homebrew
brew uninstall knowns
npm
npm uninstall -g knowns
Shell installer on macOS/Linux
curl -fsSL https://knowns.sh/script/uninstall | sh
If you installed into a custom directory, pass the same directory to the uninstaller:
curl -fsSL https://knowns.sh/script/uninstall | KNOWNS_INSTALL_DIR="$HOME/.local/bin" sh
PowerShell installer on Windows
irm https://knowns.sh/script/uninstall.ps1 | iex
If you installed into a custom directory, set the same directory first:
$env:KNOWNS_INSTALL_DIR = "$env:USERPROFILE\.knowns\bin"
irm https://knowns.sh/script/uninstall.ps1 | iex
Go install
rm -f "$(go env GOPATH)/bin/knowns"
If you installed a kn alias manually, remove that too.
Remove runtime memory adapters
If you enabled runtime memory hooks for an assistant, remove the adapter before uninstalling the CLI:
knowns runtime uninstall codex
knowns runtime uninstall claude
knowns runtime uninstall opencode
knowns runtime uninstall kiro
Run only the commands for runtimes you actually configured.
What is left behind
The uninstall scripts remove installed CLI binaries and PATH entries added by the installer. They intentionally leave these files alone:
- project
.knowns/folders - tasks, docs, specs, memory, decisions, and templates
- generated AI integration files such as
AGENTS.md,CLAUDE.md,.agents/skills,.claude/skills,.mcp.json,.codex/config.toml, oropencode.json
Delete those files manually only if you intentionally want to discard project context or remove AI integration artifacts from a repository.
Verify removal
knowns --version
If the command is not found, the CLI has been removed from your active PATH. Open a new terminal if your shell still sees an old PATH entry.
Dùng cách gỡ tương ứng với cách bạn đã cài Knowns. Gỡ CLI mặc định không xóa project context.
Homebrew
brew uninstall knowns
npm
npm uninstall -g knowns
Shell installer trên macOS/Linux
curl -fsSL https://knowns.sh/script/uninstall | sh
Nếu trước đó bạn cài vào thư mục custom, truyền lại cùng thư mục cho uninstaller:
curl -fsSL https://knowns.sh/script/uninstall | KNOWNS_INSTALL_DIR="$HOME/.local/bin" sh
PowerShell installer trên Windows
irm https://knowns.sh/script/uninstall.ps1 | iex
Nếu trước đó bạn cài vào thư mục custom, set lại cùng thư mục trước:
$env:KNOWNS_INSTALL_DIR = "$env:USERPROFILE\.knowns\bin"
irm https://knowns.sh/script/uninstall.ps1 | iex
Go install
rm -f "$(go env GOPATH)/bin/knowns"
Nếu bạn tự tạo alias kn, hãy xóa alias đó luôn.
Gỡ runtime memory adapters
Nếu đã bật runtime memory hooks cho assistant, gỡ adapter trước khi gỡ CLI:
knowns runtime uninstall codex
knowns runtime uninstall claude
knowns runtime uninstall opencode
knowns runtime uninstall kiro
Chỉ chạy các lệnh tương ứng với runtime bạn đã cấu hình.
Những gì được giữ lại
Uninstall scripts chỉ xóa CLI binary và PATH entries do installer thêm. Các file sau được giữ nguyên có chủ ý:
- project
.knowns/folders - task, doc, spec, memory, decision, và template
- AI integration files đã generate như
AGENTS.md,CLAUDE.md,.agents/skills,.claude/skills,.mcp.json,.codex/config.toml, hoặcopencode.json
Chỉ xóa thủ công các file đó khi bạn thật sự muốn bỏ project context hoặc remove AI integration artifacts khỏi repository.
Kiểm tra đã gỡ xong
knowns --version
Nếu command not found, CLI đã được gỡ khỏi PATH hiện tại. Mở terminal mới nếu shell vẫn còn thấy PATH cũ.