DevCleaner
Menu
Skip to content
Browse guides

How to clear Claude cache on Mac

Claude Desktop and Claude Code keep different files. The desktop app's cache is under Application Support and Library/Caches. Claude Code's files are under ~/.claude. Clearing one does not clear the other.

On this page

Measure desktop and CLI data separately

Claude Desktop is the Mac app. Claude Code is the claude command-line tool. They can be installed together, and the desktop app reads Claude Code's settings files, but their caches are not the same directories. A missing path means that install does not use it.

du -sh "$HOME/Library/Application Support/Claude" 2>/dev/null
du -sh "$HOME/Library/Caches/com.anthropic.claudefordesktop" 2>/dev/null
du -sh "$HOME/.claude" 2>/dev/null
claude --version

Keep credentials, settings and conversations

LocationAppDecision
~/Library/Application Support/Claude/Cache, Code Cache, GPUCacheClaude Desktop renderer cachesRegenerable after you quit the app
~/Library/Caches/com.anthropic.claudefordesktopClaude Desktop cacheRegenerable after you quit the app
~/Library/Caches/com.anthropic.claudefordesktop.ShipItClaude Desktop updater stagingLeave it while an update is pending
~/.claude/debug, shell-snapshots, cacheClaude Code diagnostics and cacheClear when no claude session is running
~/Library/Caches/claude-cli-nodejsClaude Code cacheClear when no claude session is running
~/.claude/projectsClaude Code transcriptsKeep if you want to resume sessions
~/.claude/settings.json, ~/.claude.json, ~/.claude/.credentials.jsonClaude Code settings and sign-inKeep

~/.claude is Claude Code's user directory. CLAUDE_CONFIG_DIR moves it. A large ~/.claude folder mixes cache with settings and transcripts. Do not delete the whole directory, and do not delete the whole ~/Library/Application Support/Claude tree. The rest of Application Support holds the desktop app's account and local state. DevCleaner's desktop cleanup is the cache folders, crash reports, and diagnostics, not that whole tree.

Clear a specific desktop cache

Quit Claude Desktop and let a pending update finish. In Finder, choose Go, then Go to Folder, and open one cache path. Move only that folder to the Trash, then relaunch Claude Desktop so it rebuilds the cache. Files in the Trash still use disk space until you empty it.

~/Library/Application Support/Claude/Cache
~/Library/Caches/com.anthropic.claudefordesktop

That Finder step is a Trash move. On macOS 1.17.0, Settings → General → Deletion defaults to By risk: Safe items are deleted permanently, and Warning and Danger items move to the Trash. Always move to Trash and Always delete permanently are the other choices.

Review CLI diagnostics without resetting Claude Code

Quit claude before you remove generated files. DevCleaner skips Claude cleanup while that process is running. Anthropic documents these as safe to delete by hand when you do not need them: ~/.claude/debug, ~/.claude/shell-snapshots, ~/.claude/backups, and cache files such as ~/.claude/cache/changelog.md. Backups are older copies of settings. Delete them only if you do not want those copies.

claude purge is not a cache clean. It deletes one project's transcripts, auto memory, and related session state, prints the plan, and asks before it removes anything. Preview with claude purge /path/to/project --dry-run. It leaves shell-snapshots and backups alone, and it does not delete ~/.claude.json, ~/.claude/settings.json, or installed plugins.

DevCleaner lists desktop caches, desktop diagnostics, Claude Code cache (~/Library/Caches/claude-cli-nodejs, ~/.claude/shell-snapshots, ~/.claude/statusbar, and ~/.claude/debug), and session transcripts as separate rows. Transcripts (~/.claude/projects) are Warning and stay off until you choose them. On a new Free install, Warning cleanup needs Pro. The ShipIt updater folder is left out of automatic cleanup. On macOS 1.17.0, Settings → General → Deletion defaults to By risk: Safe items are deleted permanently, and Warning items such as transcripts move to the Trash. Always move to Trash and Always delete permanently are the other choices. See the safety model and the AI storage overview.

FAQ

Can I delete the entire .claude folder?
That removes Claude Code settings, credentials, and project transcripts, not just cache. Delete specific cache and diagnostic directories, or use claude purge for one project's session state.
Does deleting Claude cache clear my chats?
Clearing Claude Desktop's renderer cache does not delete Claude Code transcripts. Transcripts are under ~/.claude/projects. Leave that folder, ~/.claude/settings.json, and ~/.claude.json if you want sessions and settings.
Why should I keep ShipIt updater files?
Claude Desktop stages a pending update in ~/Library/Caches/com.anthropic.claudefordesktop.ShipIt. Removing that folder before the update finishes can cancel the update.

References and scope

Reviewed October 19, 2026 against Claude Code's directory and settings docs, and against the Claude Desktop and Claude Code paths DevCleaner scans. CLAUDE_CONFIG_DIR moves ~/.claude. The desktop cache paths are the Mac app's folders, not a second copy of the CLI home.

Review the space before cleaning

DevCleaner lists Claude Desktop caches and Claude Code caches separately from transcripts. On macOS 1.17.0, Settings → General → Deletion defaults to By risk. Safe Quick Clean is free. Warning cleanup needs Pro on a new Free install. See Free and Pro features.

Download DevCleaner ↓
macOS 14+ · Developer ID signed · notarized by Apple
Featured on TryMacApps Featured on UsefulShelf Featured on Formac Listed on MacTools Pro Fazier badge