Uninstall Claude Code fully on Mac

Claude Code is a command-line tool; there’s no app bundle to drag to Trash. Running the uninstall command removes the binary, but config files, cache, and session data stay behind. The right removal also depends on how Claude Code was installed.

Below is how to remove Claude Code right: a quick way with App Cleaner & Uninstaller, and separate step-by-step instructions for the native installer, npm, and Homebrew.

Test environment: Claude Code v.2.1.128, MacBook Pro M1, macOS Tahoe 26.4.1.

This article contains:

  1. 1. The way of uninstalling Claude Code depends
  2. 2. FAQs

The way of uninstalling Claude Code depends

Uninstalling depends on how Claude Code got on a Mac. Run this in Terminal to check:

which claude

Terminal showing which claude command

Result: Path contains Install method Uninstall with
/opt/homebrew/ Homebrew brew uninstall
/usr/local/bin/ or ~/.nvm/ npm npm uninstall -g
~/.local/bin/ Native installer Uninstaller, Terminal, Finder

How to uninstall Claude Code with the uninstaller

Use this method if Claude Code was installed via the native installer.

App Cleaner & Uninstaller finds the app bundle and all associated files automatically.

Check out how to remove Claude Code with App Cleaner & Uninstaller:

  1. Quit Claude Code → terminate all Claude Code processes in Activity Monitor.
  2. Get and open App Cleaner & Uninstaller.
  3. Wait a moment while the tool scans your applications.
    App Cleaner & Uninstaller scanning installed applications
  4. Type Claude in the search placeholder.
    App Cleaner & Uninstaller showing Claude Code in the application list
  5. Locate Claude Code → click on it → click Uninstall.
    App Cleaner & Uninstaller with Claude Code selected
  6. Confirm removing all Claude Code files in the preview window.
    App Cleaner & Uninstaller showing Remove confirmation for Claude Code
  7. Wait for the removal completion, and then you can close it.
    App Cleaner & Uninstaller showing Claude Code removal completion

Uninstall Claude Code in Terminal

This method also applies if you used the native installer to get Claude Code.

  1. Open Terminal.
  2. Run each command individually, one at a time:
    • rm -rf ~/Library/Application\ Support/Claude/claude-code
    • rm -rf ~/Library/Caches/claude-cli-nodejs
    • rm -rf ~/Library/Application\ Support/Claude/claude-code-vm
    • rm -rf ~/Library/Application\ Support/Claude/local-agent-mode-sessions
    • rm -rf ~/Library/Application\ Support/Claude/Session\ Storage
    • rm -rf ~/.claude
    • rm ~/.claude.json

    Optional: remove the whole shared Claude folder.

    If Claude Desktop is not installed, you can remove the entire folder:

    rm -rf ~/Library/Application\ Support/Claude

Note

If you have a lot of projects and want to remove project-level settings too, go to each project directory using the cd command and run inside each project:

  • rm -rf .claude
  • rm -f .mcp.json

Delete Claude Code files in Finder

Use this as a GUI alternative to the Terminal rm commands, no Terminal required. This method refers to the native installer version.

Step 1: Quit Claude Code completely.

  • Press Cmd+Q when in Claude Code.
  • If it doesn’t respond, open Activity Monitor → search for Claude → select any Claude or CoworkVM processes → click the X button to force-quit.

Activity Monitor showing Claude Code processes

Step 2: Delete the Claude Code app.

  • Open Finder → in the menu bar, click Go → Go to Folder (Shift+Cmd+G) → enter ~/Library/Application Support/Claude/claude-code/

Finder Go to Folder showing Claude Code path

  • Inside claude-code you’ll find a folder named after the version number (e.g. 2.1.128), which contains claude.app.
  • Right-click the claude-code folder → Move to Trash.

Finder showing claude-code folder to Move to Trash

Step 3: Delete Claude Code residual files.

  • Open Finder → Go → Go to Folder (Shift+Cmd+G) → enter ~/.claude:

Finder Go showing .claude path

  • Right-click the .claude config folder → Move to Trash.
  • Repeat the flow for these paths:

    • ~/.claude.json
    • ~/Library/Caches/claude-cli-nodejs
    • ~/Library/Application Support/Claude/claude-code-vm
    • ~/Library/Application Support/Claude/local-agent-mode-sessions
    • ~/Library/Application Support/Claude/Session Storage

If Claude Desktop is not installed, you can move the entire ~/Library/Application Support/Claude/ folder to Trash.

Step 4: Empty Trash.

Claude Code uninstall with npm

Use this method if you installed Claude Code by running npm install -g @anthropic-ai/claude-code.

Step 1: Remove the Claude Code package.

npm uninstall -g @anthropic-ai/claude-code

  • Verify: which claude should return nothing.
  • Also confirm with: npm list -g --depth=0 (no package exists: @anthropic-ai/claude-code).

Step 2: Remove Claude Code leftover files.

  • rm -rf ~/Library/Caches/claude-cli-nodejs
  • rm -rf ~/.npm/_cacache/
  • rm -rf ~/.claude
  • rm ~/.claude.json
Note

If Node.js is managed via nvm and you used multiple Node versions, Claude Code may be installed in each. You have to switch to each version with nvm use X.X and run npm uninstall -g @anthropic-ai/claude-code for each one.

Uninstall Claude Code with Homebrew

Use this method if you used brew to install Claude Code.

Step 1: First, confirm the exact name installed.

  • brew list | grep claude

Step 2: Uninstall Claude Code.

  • brew uninstall claude-code, or
  • brew uninstall claude-code@latest

Step 3: Remove unused dependencies.

  • brew autoremove
  • brew cleanup

Step 4: Verify removal.

  • which claude should return nothing.

Step 5: Remove Claude Code leftover files.

Homebrew does not remove user config files. Clean them up manually by running these commands one by one:

  • rm -rf ~/Library/Caches/claude-cli-nodejs
  • rm -rf ~/Library/Application\ Support/Claude/claude-code-vm
  • rm -rf ~/Library/Application\ Support/Claude/local-agent-mode-sessions
  • rm -rf ~/Library/Application\ Support/Claude/Session\ Storage
  • rm -rf ~/.claude
  • rm -f ~/.claude.json

Final points

  • Use App Cleaner & Uninstaller to remove Claude Code (native installer) and all its files in one pass, no Terminal required.
  • Use the Terminal method matching your install (native installer, npm, or Homebrew), then clean up leftover files with the rm commands or via Finder.

Frequently asked questions

How to uninstall the MCP servers installed with Claude Code?
How to delete a Claude Code account?
How to delete the Claude CLI?

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *