Cursor editor cache on Mac: safe to delete CachedData?
Quit first: Cursor
Where it is
~/Library/Application Support/Cursor/Cache~/Library/Application Support/Cursor/CachedData~/Library/Application Support/Cursor/Code Cache~/Library/Application Support/Cursor/GPUCache~/Library/Application Support/Cursor/CachedExtensionVSIXs~/Library/Application Support/Cursor/logs~/Library/Application Support/Cursor/Crashpad~/Library/Caches/com.todesktop.230313mzl4w4u92~/Library/Caches/com.todesktop.230313mzl4w4u92.ShipIt
What it is
Cursor is a fork of VS Code, so it inherits VS Code's cache layout inside its Application Support folder: web and GPU caches, CachedData (compiled code for the editor), cached extension packages, logs and Crashpad crash reports. Its updater keeps files in ~/Library/Caches under a ToDesktop bundle ID rather than a Cursor-named folder.
Why it gets so big
Cursor ships updates often, and CachedData can keep entries from earlier versions. Extension installs and updates leave cached VSIX packages behind, and logs are written per window and session.
Is it safe to delete?
Yes. None of this is your settings, extensions or workspace state, which live in other folders. Cursor rebuilds these caches on its next launch, which may be a bit slower the first time. Quit Cursor before clearing.
Tip
The cryptic com.todesktop.230313mzl4w4u92 folder in ~/Library/Caches belongs to Cursor's updater. It isn't malware.
See how much space it uses
du -sh "$HOME/Library/Application Support/Cursor/Cache" "$HOME/Library/Application Support/Cursor/CachedData" "$HOME/Library/Application Support/Cursor/Code Cache" "$HOME/Library/Application Support/Cursor/GPUCache" "$HOME/Library/Application Support/Cursor/CachedExtensionVSIXs" "$HOME/Library/Application Support/Cursor/logs" "$HOME/Library/Application Support/Cursor/Crashpad" "$HOME/Library/Caches/com.todesktop.230313mzl4w4u92" "$HOME/Library/Caches/com.todesktop.230313mzl4w4u92.ShipIt" 2>/dev/nullDelete it by hand
Run in Terminal. Deleting cannot be undone, so check the paths first.
rm -rf "$HOME/Library/Application Support/Cursor/Cache"/*
rm -rf "$HOME/Library/Application Support/Cursor/CachedData"/*
rm -rf "$HOME/Library/Application Support/Cursor/Code Cache"/*
rm -rf "$HOME/Library/Application Support/Cursor/GPUCache"/*
rm -rf "$HOME/Library/Application Support/Cursor/CachedExtensionVSIXs"/*
rm -rf "$HOME/Library/Application Support/Cursor/logs"/*
rm -rf "$HOME/Library/Application Support/Cursor/Crashpad"/*
rm -rf "$HOME/Library/Caches/com.todesktop.230313mzl4w4u92"/*
rm -rf "$HOME/Library/Caches/com.todesktop.230313mzl4w4u92.ShipIt"/*