from line 35
3535 <Tab title="Native Install (Recommended)">
3636 **macOS, Linux, WSL:**
3737
38 ```bash theme={null}
38 ```bash theme={null} theme={null}
3939 curl -fsSL https://claude.ai/install.sh | bash
4040 ```
4141
from line 43
4343
4444 **Windows PowerShell:**
4545
46 ```powershell theme={null}
46 ```powershell theme={null} theme={null}
4747 irm https://claude.ai/install.ps1 | iex
4848 ```
4949
5050 **Windows CMD:**
5151
52 ```batch theme={null}
52 ```batch theme={null} theme={null}
5353 curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
5454 ```
5555
from line 67
6767 </Tab>
6868
6969 <Tab title="Homebrew">
70 ```bash theme={null}
70 ```bash theme={null} theme={null}
7171 brew install --cask claude-code
7272 ```
7373
from line 79
7979 </Tab>
8080
8181 <Tab title="WinGet">
82 ```powershell theme={null}
82 ```powershell theme={null} theme={null}
8383 winget install Anthropic.ClaudeCode
8484 ```
8585
from line 586
586586
587587To remove Claude Code, follow the instructions for your installation method. If `claude` still runs afterward, you likely have a second installation or a leftover shell alias from an older installer. See [Check for conflicting installations](/docs/en/troubleshoot-install#check-for-conflicting-installations) to find and remove it.
588588
589### Native installation
589<span id="native-installation" />
590590
591### Uninstall a native installation
592
591593Remove the Claude Code binary and version files:
592594
593595<Tabs>
from line 608
606608 </Tab>
607609</Tabs>
608610
609### Homebrew installation
611<span id="homebrew-installation" />
610612
613### Uninstall with Homebrew
614
611615Remove the Homebrew cask you installed. If you installed the stable cask:
612616
613617```bash theme={null}
from line 624
620624brew uninstall --cask claude-code@latest
621625```
622626
623### WinGet installation
627<span id="winget-installation" />
624628
629### Uninstall with WinGet
630
625631Remove the WinGet package:
626632
627633```powershell theme={null}
from line 634
628634winget uninstall Anthropic.ClaudeCode
629635```
630636
631### apt / dnf / apk
637<span id="apt-/-dnf-/-apk" />
632638
639### Uninstall with apt, dnf, or apk
640
633641Remove the package and the repository configuration:
634642
635643<Tabs>
from line 664
656664 </Tab>
657665</Tabs>
658666
659### npm
667<span id="npm" />
668
669### Uninstall with npm
660670
661671Remove the global npm package:
662672
No line in this hunk matches that.