How to Uninstall Claude Code Completely (2026 Guide)

Author Avatar
Andrew
AI Perks Team
5,200
How to Uninstall Claude Code Completely (2026 Guide)

Quick Summary: Uninstalling Claude Code requires different steps depending on your installation method (native installer, npm, or Homebrew). To uninstall a native installation, run the command claude uninstall in your terminal (available on Windows, macOS, and Linux). All methods require manually removing configuration files from ~/.claude/ to ensure complete removal.

Need to remove Claude Code from your system? The uninstall process isn’t as straightforward as it should be. The method varies dramatically based on how you originally installed the tool.

Here’s what makes this tricky: Claude Code can be installed through native installers, npm, Homebrew, or other package managers. Each method leaves behind different artifacts.

Identify Your Installation Method First

Before uninstalling, determine how Claude Code was installed on your system. Run this command in your terminal:

claude –version

Check these common installation locations:

  • Native installer (Windows): Program Files or AppData
  • Native installer (macOS): Applications folder
  • npm installation: ~/.npm-global/bin/
  • Homebrew: /usr/local/bin/ or /opt/homebrew/bin/

Uninstall via Native Installer

For Windows installations using the PowerShell script (irm claude.ai/install.ps1 | iex), the process differs from standard applications.

Windows 10/11:

  1. Open Settings > Apps > Installed apps
  2. Search for “Claude Code”
  3. Click the three dots and select Uninstall
  4. Confirm the removal

macOS:

  1. Open Finder and navigate to Applications
  2. Locate Claude Code
  3. Drag it to Trash or right-click and select Move to Trash
  4. Empty Trash to complete removal

According to GitHub issues (#6920), some users report the native Windows installer lacks uninstall documentation. If Claude Code doesn’t appear in your standard application list, you’ll need alternative removal methods.

Remove via Package Managers

For npm installations, run these commands:

npm uninstall -g @anthropic-ai/claude-code
rm -f $HOME/.npm-global/bin/claude

For Homebrew on macOS:

brew uninstall –cask claude-code

Community discussions on Reddit confirm that package manager installations often leave configuration files behind. The uninstall command removes the binary but not your settings.

Delete Configuration Files

This step is critical. The uninstaller doesn’t remove your configuration files, which can cause issues if you reinstall later.

Remove these directories and files manually:

rm -rf ~/.claude/
rm ~/.claude.json
rm -rf ~/.local/share/claude
rm -f $HOME/.local/bin/claude
rm -rf $HOME/.bun/bin/../install/global/node_modules/@anthropic-ai

On Windows, delete these folders:

  • %USERPROFILE%\.claude\
  • %APPDATA%\Claude\
  • %LOCALAPPDATA%\Claude\
Complete uninstall process requires three distinct steps for full removal

Verify Complete Removal

After uninstalling, confirm Claude Code is gone:

which claude
claude –version

Both commands should return “command not found” or similar errors. If they still execute, check your PATH variable for remaining references.

Get AI Credits and Software Discounts in One Place

If you are still working with AI tools after removing Claude Code, Get AI Perks can be a practical next stop. It collects startup credits and software discounts for AI and cloud tools in one place. It gives founders access to 200+ perks, including offers from Anthropic, Claude, OpenAI, Gemini, ElevenLabs, Intercom, and others. The platform also includes perk conditions, approval guidance, and step-by-step instructions for claiming each offer.

Looking for Claude or Anthropic Credits?

Check Get AI Perks to:

  • find AI tool credits and discounts in one place
  • review perk conditions before applying
  • access guides for claiming startup offers

👉 Visit Get AI Perks to browse available Claude, Anthropic, and other AI software perks.

Common Uninstall Issues

Based on GitHub bug report #11789, some users on Linux reported being unable to uninstall without an active paid account, though this appears to be a platform-specific issue.

If you face this problem, bypass the standard uninstaller and manually delete the application files and directories listed above. This removes Claude Code without requiring authentication.

Another issue: disabled MCP servers and plugins remain on your system. To remove MCP servers, use the command claude mcp remove [server-name].

FAQs

Do I need an active account to uninstall Claude Code?

No. While some Linux users reported authentication errors when using ‘claude uninstall’, manual file deletion removes Claude Code without account verification. Delete the application files and configuration directories directly.

Will uninstalling remove my project settings?

Manual removal of ~/.claude/ will delete user-scope settings. However, project-level .claude/ directories committed to git are not automatically deleted and must be manually removed.

Can I reinstall after uninstalling?

Absolutely. Reinstallation works normally after complete removal. Removing configuration files ensures a clean installation without conflicts from previous settings.

What happens to MCP servers after uninstall?

MCP servers persist in your configuration even when disabled. Manually delete the MCP configuration from ~/.claude/ to fully remove them, as the UI doesn’t provide an uninstall option.

Does Windows require admin rights to uninstall?

Typically yes, especially for system-wide installations. User-level installations may not require elevation, but configuration cleanup in system directories needs administrator access.

How do I uninstall on WSL2?

WSL2 installations follow Linux uninstall procedures. Use the package manager method or manually remove files from the Linux filesystem, not the Windows side.

Why doesn’t uninstalling remove all files?

Standard uninstallers preserve user configuration data for potential reinstallation. This is common practice but requires manual cleanup for complete removal.

AI Perks

AI Perks स्टार्टअप और डेवलपर्स को पैसे बचाने में मदद करने के लिए AI टूल्स, क्लाउड सेवाओं और API पर विशेष छूट, क्रेडिट और डील तक पहुंच प्रदान करता है।

AI Perks Cards

This content is for informational purposes only and may contain inaccuracies. Credit programs, amounts, and eligibility requirements change frequently. Always verify details directly with the provider.