Guides · macOS
CLAUDE CURSOR AND VS CODE CACHES
Short answer
Claude, Cursor and VS Code keep their caches in ~/Library/Application Support, in each app’s Cache, Code Cache and CachedData folders, and rebuild them by themselves. With the app closed, you can delete those folders without losing conversations or settings. Old git worktrees leave through git worktree remove, never by deleting the folder by hand.
Where they are
- Claude:
~/Library/Application Support/Claude/CacheandCode Cache. - Cursor:
~/Library/Application Support/Cursor/CachedData. - VS Code:
~/Library/Application Support/Code/CachedData,CachedExtensionVSIXsandCache.
Quit the app first. While it’s open, it rebuilds the files right away or may get confused by their absence.
What never to delete
- The tools’ conversation, settings and memory folders.
Userin VS Code and Cursor: that’s where settings, keybindings and editor state live.- Downloaded models, like the Hugging Face folder in
~/.cache: they’re big and slow to download again.
Old worktrees
Coding tools create a git worktree per task, and they stay on disk after the work is done. To see yours, run git worktree list inside the repository. To remove one, use git worktree remove and its path: git refuses if there are uncommitted changes. Then git worktree prune clears the records of worktrees whose folders are gone.
Deleting a worktree’s folder from the Finder leaves its record in the repository and can take files git ignores, like a local .env, with it.
With CleanUai
In the System Junk channel, the AI tools group shows these caches with their size and unchecks an app that’s open. A worktree is only offered when it’s clean, already on the default branch, with nothing running inside and idle for over 24 hours, and it leaves through git itself, without --force.
Step by step
- Quit Claude, Cursor or VS Code.
- In the Finder, press
⇧⌘Gand type~/Library/Application Support. - Open the app’s folder and move
Cache,Code CacheorCachedDatato the Trash. - For worktrees, run
git worktree listand remove the finished ones withgit worktree remove. - Open the app again: it rebuilds what it needs.
Questions
Does clearing Claude’s cache delete my conversations?
No. Conversations live in your account and in other folders. The cache is only a temporary copy the app rebuilds.
Why does VS Code take so much space?
Its data and extension caches grow with every update, and old versions are kept in CachedData and CachedExtensionVSIXs.
Can I lose code by removing a worktree?
With git worktree remove and no --force, git refuses if there are uncommitted changes. Still, check files git ignores, like a .env, because they go with it.
See also
Other guides
Updated