OptiClear

Developer IDEs

Clear DataGrip Cache on Mac

Clear the cache with File > Invalidate Caches, then restart the app. This removes only the current version's indexes and caches, and your projects, settings and passwords stay where they are.

Last updated: 2 min read

Clear the DataGrip cache without guessing

DataGrip data usually takes 500 MB – 10 GB on a Mac. The free scan shows the exact size on your Mac before you change anything.

Scan your Mac free

Free scan · No account · Nothing is deleted without your OK · Moves to the Trash first · macOS 14+

Application
DataGrip
Typical data size
500 MB – 10 GB
Category
Developer IDEs
File Location
~/Library/Caches/JetBrains

Clear it from inside DataGrip first

The safest way is the option built into the app: File > Invalidate Caches, then restart; this clears only the current version's caches, not folders left by older releases or by other JetBrains IDEs.

DataGrip cache folders you can clear

These folders are rebuilt automatically, so removing them does not touch your own files.

Locations are the standard macOS folders DataGrip uses; some appear only after you use the matching feature.

What the DataGrip cache holds and when clearing helps

Specific to DataGrip

The cache is made of indexes and caches the app builds to speed up code completion and search. Each release gets its own versioned folder, so upgrades leave older data behind, and the typical size of the app's data is 500 MB – 10 GB. Clearing helps when indexing runs again and again, when completion suggestions are wrong, or when old version folders pile up in ~/Library/Caches/JetBrains.

What happens after you clear the DataGrip cache

The cache rebuilds automatically, so the first start afterwards is slower while indexing runs again. Query consoles and data source definitions stay in the settings folder, and passwords remain in the Keychain. Your projects and their .idea folders are untouched. If you are asked to sign in, that concerns your JetBrains Account activation, not the cache.

0 of 4 done

Account and sync
Paid JetBrains IDEs are activated with a JetBrains Account; settings can also be synced to that account with Backup and Sync.

Try it without risk

  1. Download and scan for freeSee every DataGrip file and its size. No account needed.
  2. Clean free for 7 daysStart the 7-day free trial of the yearly plan inside the app.
  3. Keep it or cancelCancel in your App Store settings at least 24 hours before the trial ends and you won't be charged.
Download free and scan

After the free trial, Pro costs $39.99 per year in your country's App Store; cancel any time.

Frequently asked questions

Yes. Folders marked “Yes, rebuilt automatically” are rebuilt automatically; removing them only makes the next start slower.
Will I have to reconnect my data sources?
No. Data source definitions are kept in the settings folder, which clearing the cache does not touch.
Why is space still used after clearing the cache?
Folders from older releases stay until you handle them separately, because Invalidate Caches only clears the current version.

Related cleanup guides