How do I clear Cursor's cache?
Where Cursor Stores Cache
Cursor stores cache data in its user data folder. On Windows, this is usually %APPDATA%\Cursor\Cache and %APPDATA%\Cursor\CachedData. On macOS, look in ~/Library/Application Support/Cursor/Cache and ~/Library/Application Support/Cursor/CachedData. On Linux, check ~/.config/Cursor/Cache and ~/.config/Cursor/CachedData.
These folders contain temporary files that help Cursor run faster, but they can become corrupted or outdated. Clearing them can resolve strange behavior, free up disk space, and sometimes fix performance issues.
- Close Cursor before deleting cache folders.
- You can safely delete the entire Cache and CachedData folders.
- Cursor will recreate them on next launch.
- Consider backing up your settings first if you're unsure.
How to Clear Cache Safely
First, exit Cursor completely. Then navigate to the cache folders and delete their contents. You can also use a terminal command to remove them quickly. For example, on macOS: rm -rf ~/Library/Application\ Support/Cursor/Cache/*. Be careful with the path to avoid deleting the wrong files.
After clearing the cache, restart Cursor. It may take a moment to rebuild the cache, so the first launch might be slightly slower. If you continue to experience issues, you can also try clearing the workspace storage folder, which is located alongside the cache folders.
Common mistakes
- Deleting the entire Cursor folder instead of just the cache, which removes your settings.
- Clearing cache while Cursor is running, which can cause file locks or errors.
- Expecting cache clearing to fix all problems; it's just one troubleshooting step.
