How to uninstall Claude Code?

To uninstall Claude Code, run the removal command for the way you installed it; Anthropic’s setup documentation lists one for each method.

As of December 3, 2026, the documented commands are:

  • Native install (macOS, Linux, WSL): rm -f ~/.local/bin/claude and rm -rf ~/.local/share/claude. On Windows PowerShell, delete %USERPROFILE%\.local\bin\claude.exe and the .local\share\claude folder with Remove-Item.
  • Homebrew: brew uninstall --cask claude-code (or claude-code@latest).
  • WinGet: winget uninstall Anthropic.ClaudeCode
  • apt, dnf or apk: for example sudo apt remove claude-code, then delete the Claude Code repository file.
  • npm: npm uninstall -g @anthropic-ai/claude-code

To remove settings and session history too, delete ~/.claude and ~/.claude.json. Anthropic warns that the VS Code extension, JetBrains plugin and Desktop app recreate ~/.claude, so uninstall them first. If claude still runs, you likely have a second installation or an old shell alias.

Related: How to update Claude Code?, Claude Code 2.1.332 power-user guide and How to uninstall Ollama?

Source: Anthropic, Claude Code docs: Advanced setup (Uninstall Claude Code)

Image: Claude logo by Anthropic, public domain (trademarked), via Wikimedia Commons. Placed on a white background and resized. Claude is a trademark of Anthropic. FreeAnswers is not affiliated with or endorsed by Anthropic.



Related answers

Leave a Comment