
Uninstall Claude Code in two steps.
To uninstall Claude Code, remove the program the same way you installed it, then delete its settings folder, ~/.claude, if you want nothing left behind. Each step is one or two commands, listed below for every install method.
How do I uninstall Claude Code on a Mac or Linux?
If you installed it with the official install script, delete the program and its version files with the two commands below. Run them in Terminal, then run claude --version to check it is gone.
rm -f ~/.local/bin/claude rm -rf ~/.local/share/claude
Commands match Anthropic's own setup guide. Read the guide
How do I uninstall Claude Code on Windows?
If you used the install script, remove claude.exe and its version folder with the two PowerShell commands below. If you installed it with WinGet, run winget uninstall Anthropic.ClaudeCode instead.
Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force
winget uninstall Anthropic.ClaudeCode
How do I uninstall Claude Code installed with Homebrew, npm or apt?
Use the tool you installed it with: Homebrew, npm and the Linux package managers each remove it in one command. Pick the line that matches your install below.
brew uninstall --cask claude-code brew uninstall --cask claude-code@latest
npm uninstall -g @anthropic-ai/claude-code
sudo apt remove claude-code sudo rm /etc/apt/sources.list.d/claude-code.list /etc/apt/keyrings/claude-code.asc
sudo dnf remove claude-code sudo rm /etc/yum.repos.d/claude-code.repo
apk del claude-code sed -i '\|downloads.claude.ai/claude-code/apk|d' /etc/apk/repositories rm /etc/apk/keys/claude-code.rsa.pub
How do I delete Claude Code's settings and history?
Delete the .claude folder and the .claude.json file in your home folder, then the .claude folder and .mcp.json file in each project you used it in. This erases your settings, allowed tools, MCP servers and session history, so copy anything you want to keep first.
rm -rf ~/.claude rm ~/.claude.json
Remove-Item -Path "$env:USERPROFILE\.claude" -Recurse -Force Remove-Item -Path "$env:USERPROFILE\.claude.json" -Force
rm -rf .claude rm -f .mcp.json
Remove-Item -Path ".claude" -Recurse -Force Remove-Item -Path ".mcp.json" -Force
Why does Claude Code still run after I uninstalled it?
You most likely have a second copy, for example one from npm and one from the install script, or an old shell alias. Find where it lives with the command below, then remove that copy the way it was installed.
which -a claude
where.exe claude
Will the VS Code extension or the desktop app bring it back?
They can: the VS Code extension, the JetBrains plugin and the Claude desktop app all write to the same ~/.claude folder, so it comes back the next time one of them runs. Uninstall them first if you want Claude Code gone for good.
Does uninstalling Claude Code cancel my Claude subscription?
No. Your Claude plan is billed by Anthropic and keeps renewing until you cancel it in your account settings on claude.ai.



