If you want to uninstall Claude Code, remove the Claude Code package or binary from your machine, delete any related shell config or local settings you no longer want, and then confirm the claude command is gone; this independent guide from c-ai.chat explains the cleanest path for common setups and what to check if anything is left behind.

If you are not sure whether you installed the terminal tool, the web app, or API access, start with the product overview at Claude Code and then come back here for the removal steps.
- The short answer
- How it works
- What you’d actually do with it
- Vs. the alternatives
- Other questions readers ask
- The honest take
The short answer

Uninstalling Claude Code usually means deleting a command-line installation from macOS, Linux, or Windows terminal tooling, then removing optional config files if you want a full cleanup. This page is for people who installed Claude Code locally and now want to remove it cleanly, whether they are troubleshooting, switching tools, or just no longer using it.
- What it does · CLI coding assistant for terminal workflows
- Where it runs · Local developer environments on desktop operating systems
- What it costs · Claude plans start at $0/month; API pricing is separate on Claude pricing
- Who it’s for · Developers who installed Claude Code and want to remove it fully
The exact uninstall command depends on how you originally installed it. If you used a package manager, remove it with that same package manager first. If you installed a standalone binary or script, delete the executable and then check your shell profile for PATH entries, aliases, or startup lines that still reference Claude Code.
If your goal is only to stop being billed, uninstalling the local tool is not the same as cancelling a plan or removing API access. For that, check your account and billing details on the official Claude service and compare plan details on our pricing guide.
How it works

Claude Code is a local tool, so uninstalling it is mostly an operating-system task rather than an account-level action. In practice, you are removing one or more of these pieces: the executable itself, package-manager metadata, shell integrations, cached local files, and any personal configuration files you created while using it.
For engineers, the safe workflow is simple: identify the installation source, remove the package or binary, verify the shell no longer resolves the command, and then decide whether to delete user-level config. That last step matters because many developers want different outcomes. Some want a full wipe. Others want to reinstall later and keep preferences.
If Claude Code authenticated against your Claude account or used API credentials, uninstalling the client does not automatically revoke those credentials. If you shared a machine, also remove stored tokens or environment variables and review any API setup under Claude API if you connected developer tooling to Anthropic services.
-
Find how Claude Code was installed
Check your shell history, package manager history, or the command path with
which claudeon macOS/Linux orwhere claudeon Windows. -
Remove the package or binary
Use the same install method in reverse. For example, if you used a package manager, uninstall it there instead of only deleting a file manually.
-
Verify the command is gone
Run
which claude,where claude, or tryclaude --help. If the shell still finds it, another copy is still on your PATH. -
Remove optional config and cache
Delete only what you no longer need. That may include config directories, logs, cache folders, or shell aliases that point to Claude Code.
-
Restart the shell
Open a new terminal session or reload your shell config so old PATH entries and command hashes are cleared.
Tip: if uninstalling fails, the most common cause is using the wrong removal method for the original installation.
That is why the first check matters more than people expect. A Homebrew install, npm-style global install, installer package, and manually copied binary can all leave different traces behind. The goal is not just “delete a command.” The goal is to remove the specific copy your shell is actually calling.
What you’d actually do with it
Here are the practical uninstall tasks people usually need. The commands below are examples, not official Anthropic commands. Use them as a pattern after you confirm where Claude Code is installed on your own machine.
1) Check where the command resolves. This tells you whether Claude Code is in /usr/local/bin, a package-manager path, a user directory, or somewhere else entirely.
# macOS / Linux
which claude
type -a claude
# Windows Command Prompt
where claude
If you see multiple results, uninstalling one copy may not be enough. Remove the package-manager version first, then test again. If a second path remains, that copy is still active.
2) Remove a package-manager install. If your shell history shows a package install, use the matching package manager to uninstall it cleanly. That also helps remove package metadata and future update hooks.
# Example patterns only
brew uninstall claude
npm uninstall -g claude
pnpm remove -g claude
pip uninstall claude
The package name may not be exactly claude. Check your install history before running anything. If you are unsure, list installed packages in that manager and look for the relevant name.
3) Delete a standalone binary. If which claude points to a direct file rather than a managed package, remove that file and then open a new shell session.
# Example only — confirm the path first
rm /usr/local/bin/claude
# Then verify
which claude
On Windows, the equivalent step may be deleting an executable from a user tools folder and then removing that folder from PATH in system or user environment settings.
4) Remove shell aliases or helper functions. Sometimes the claude command still works because it was aliased in .zshrc, .bashrc, or another startup file.
# Search common shell files for references
grep -n "claude" ~/.zshrc ~/.bashrc ~/.bash_profile ~/.profile 2>/dev/null
Delete any lines you added, save the file, and reload the shell with source ~/.zshrc or by opening a new terminal. This is one of the most common fixes when people think the uninstall did not work.
Worked example
Clean uninstall on a Mac after a manual binary install
/usr/local/bin/clauderm /usr/local/bin/claudegrep -n "claude" ~/.zshrcexec zshwhich claude returns nothingIf the command no longer resolves, the uninstall is complete for that user account.
5) Remove local settings, cache, or credentials. This is optional, but useful if you are decommissioning a machine or handing it to someone else. Search your home directory for Claude-related config and delete only what you recognise.
# Example search patterns
find ~ -iname "*claude*" 2>/dev/null
env | grep -i claude
Be careful here. A broad search may also find unrelated project files that mention Claude in filenames, prompts, notes, or documentation. Delete config deliberately, not blindly.
Good cleanup practice
- Uninstall with the original package manager
- Verify the active command path before deleting files
- Remove shell aliases and PATH entries
- Clear local credentials on shared machines
Common mistakes
- Deleting one binary when another copy still exists
- Assuming uninstall cancels billing
- Forgetting shell startup files
- Removing project files that only mention Claude by name
If you are uninstalling because the tool is not behaving as expected, it can also help to compare the terminal workflow with Claude’s broader feature set or revisit the product page for Claude Code before reinstalling.
Vs. the alternatives
People searching for “uninstall Claude Code” are often not just removing a tool. They are deciding whether they want a terminal-first assistant at all, or whether an editor-integrated tool fits better. The trade-offs are mostly about workflow, not brand.
| Tool type | Main interface | Best for | Weak point | When uninstalling is simpler |
|---|---|---|---|---|
| Claude Code | Terminal / CLI | Developers who work in shell-heavy workflows and want direct command-line assistance | Less natural if you prefer everything inside an IDE sidebar | Usually simple if installed through one package manager or one binary path |
| Cursor-style editor assistant | Desktop code editor | People who want AI tightly embedded in file editing and code navigation | Can feel heavier if you only want quick terminal help | Often tied to app uninstall plus local settings cleanup |
| Copilot-style extension | IDE extension | Inline completions inside supported editors | Less useful for shell tasks and repo-wide terminal workflows | Usually remove the extension from each editor separately |
| Cody-style code assistant | Editor extension / app | Search, chat, and code actions inside supported IDEs | Experience depends heavily on editor support and setup | Extension removal is easy, but cached settings may remain |
The practical difference is this: Claude Code removal is usually an operating-system cleanup job, while editor-based alternatives often require you to remove both the app integration and editor-specific extensions. Neither approach is better for everyone. It depends on whether your coding workflow starts in the terminal or in the IDE.
If your decision is cost-driven rather than workflow-driven, check the full breakdown on Claude pricing. Local tool removal and account billing are related questions, but they are not the same action.
Other questions readers ask
Those questions sit close to the same search cluster because many users are really asking one of three things: how to remove the command, how to stop charges, or how to erase local traces. The answer depends on which of those three problems you are actually solving.
The honest take
If you need to uninstall Claude Code, the job is usually straightforward once you identify how it was installed. Remove it with the same package manager or delete the correct binary, then clean up shell references and optional local config. The tricky part is not the uninstall itself. It is making sure you are removing the active copy and not confusing local removal with subscription or API account changes.
For most developers, a clean uninstall takes a few minutes. If the command still appears afterward, do not start deleting random files. Check PATH resolution first, then your shell config. If you are comparing whether to keep using Claude in another form, our guides to Claude features and Claude Code are the next useful stops.
Independent guide. Not affiliated with Anthropic. For the official Claude product, visit claude.ai.
Last updated: 2026-05-12





