Cursor is a VS Code fork, so it inherits VS Code's cache sprawl — plus its own AI caches.
| OS | Base dir |
|---|---|
| macOS | ~/Library/Application Support/Cursor/ |
| Windows | %APPDATA%\Cursor\ |
| Linux | ~/.config/Cursor/ |
Inside, the space hogs: Cache/, CachedData/, Code Cache/, GPUCache/, logs/, and User/workspaceStorage/ (per-project state, can be GBs).
# quit Cursor first rm -rf "~/Library/Application Support/Cursor/Cache" rm -rf "~/Library/Application Support/Cursor/CachedData" rm -rf "~/Library/Application Support/Cursor/Code Cache" rm -rf "~/Library/Application Support/Cursor/GPUCache"
User/globalStorage/state.vscdb — that's your logins, AI chat history and settings. workspaceStorage is safe-ish but resets per-project UI state.Don't want to touch the terminal? These do it safely (paid):
CleanMyMac (macOS) — free scan DaisyDisk (macOS) CCleaner (Win/Mac)Sponsored links. We only list tools we'd run ourselves.