docs/users/support/Uninstall.md
Your uninstall method depends on how you installed the CLI.
npx runs packages from a temporary cache without a permanent installation. To "uninstall" the CLI, you must clear this cache, which will remove qwen-code and any other packages previously executed with npx.
The npx cache is a directory named _npx inside your main npm cache folder. You can find your npm cache path by running npm config get cache.
For macOS / Linux
# The path is typically ~/.npm/_npx
rm -rf "$(npm config get cache)/_npx"
For Windows
Command Prompt
:: The path is typically %LocalAppData%\npm-cache\_npx
rmdir /s /q "%LocalAppData%\npm-cache\_npx"
PowerShell
# The path is typically $env:LocalAppData\npm-cache\_npx
Remove-Item -Path (Join-Path $env:LocalAppData "npm-cache\_npx") -Recurse -Force
If you installed the CLI globally (e.g. npm install -g @qwen-code/qwen-code), use the npm uninstall command with the -g flag to remove it.
npm uninstall -g @qwen-code/qwen-code
This command completely removes the package from your system.
If you installed via the standalone installer (curl ... | bash or irm ... | iex), use the dedicated uninstall script.
Linux / macOS
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/uninstall-qwen-standalone.sh | bash
Windows
irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/uninstall-qwen-standalone.ps1 | iex
The uninstaller removes the standalone runtime, generated qwen wrapper, and installer-managed PATH changes. Your Qwen Code configuration (~/.qwen) is preserved by default.