How to Backup & Uninstall Claude Code (Mac & Windows)
February 25, 2026 · Mike Murphy
In this tutorial, I'll walk you through how to take inventory of your current Claude Code setup, create a full backup of your settings and custom skills, and do a clean uninstall on both Mac and Windows.
Description
Before you wipe your computer or move to a new machine, make sure your Claude Code settings are safe. In this tutorial, I’ll walk you through how to take inventory of your current Claude Code setup, create a full backup of your settings and custom skills, and do a clean uninstall on both Mac and Windows.
If you’re switching machines, starting fresh, or just want a clean slate before reinstalling, this is the process to follow before you touch anything.
What You’ll Learn:
- How to check your Claude Code version and confirm which installer you used (npm or native)
- How to view your global config settings and custom skills before you back up
- What gets removed during uninstall and what stays untouched (project files and Claude Desktop are safe)
- How to create a backup folder and copy your entire .claude directory in one command
- How to reveal hidden files on Mac to confirm your backup actually worked
- How to uninstall Claude Code cleanly for both the native installer and the npm installer
- How to verify Claude Code has been fully removed from your system
Key Commands:
Check version:
claude --version
Check install location (Mac):
which claude
Check install location (Windows):
where claude
View Claude Code settings:
ls -la ~/.claude/
Create backup folder:
mkdir -p ~/claude-backup
Backup all Claude Code data:
cp -R ~/.claude ~/claude-backup/
🔗 Links Mentioned
How to Install Claude Code (Native Installer): [link coming soon]
How to Restore Claude Code from Backup: [link coming soon]
⏱️ Timestamps
00:00 Intro: About This Tutorial
00:14 Who Is This For?
00:42 Prepare For Backup
00:56 Check Current Version of Claude Code
01:17 Which (Where) Claude
02:32 Global Config Settings
02:52 What is Removed & What is Not?
03:24 Backup Location
04:29 Backup Al Claude Code Data
05:52 Confirm Backup Worked
07:06 Uninstall (Clean Removal)
08:38 Remove Claude Code
09:27 Verify Removal
🪜The Step-By-Step:
- Run
claude --versionto note your current version - Run
which claude(Mac) orwhere claude(Windows) to confirm which installer you used - Run
ls -la ~/.claude/to view your global config, history, and custom skills - Create a backup folder:
mkdir -p ~/claude-backup - Copy all Claude Code data:
cp -R ~/.claude ~/claude-backup/ - Open the backup folder in Finder or File Explorer and press Shift + Command + . (Mac) to show hidden files and confirm the .claude folder copied over
- Run
which claudeagain to confirm your install type, then run the matching uninstall command (native installer or npm) - Remove global settings, auth tokens, and cache using the three removal commands (covered at 08:38)
- Run
which claudeandclaude --versionto verify Claude Code has been fully removed