Folder

Is ~/Library/Caches/JetBrains safe to delete on a Mac?

Yes, ~/Library/Caches/JetBrains is safe to delete: it holds rebuildable caches and indexes, one folder per IDE version, and folders for versions you no longer run are dead weight.

2 safe2 careful

updated read 3 minfor IntelliJ IDEA, PyCharm, WebStorm, GoLand, Rider and other JetBrains IDEs on macOS

The short answer

  1. 01

    Safe to delete. Each folder, such as IntelliJIdea2026.2, holds caches and indexes for one IDE version. The IDE rebuilds them.

  2. 02

    JetBrains IDEs write it while indexing your projects. A new major version starts a new folder and leaves the old one behind.

  3. 03

    You lose one thing worth knowing about: JetBrains keeps local history in the same system directory, so clearing the current version's folder clears it too.

  4. 04

    The tool's way: Help | Delete Leftover IDE Directories removes folders of versions you no longer use.

See its real size on your Mac. Hoardless measures this folder and previews the delete.Download free trial

What is the JetBrains caches folder?

It is the system directory of every JetBrains IDE on your Mac. JetBrains documents the macOS path as ~/Library/Caches/JetBrains/<product><version>, for example IntelliJIdea2026.2, and says it contains caches and local history files.

So the folder holds one subfolder per IDE and version: PyCharm2025.3, WebStorm2026.1 and so on. Your settings and plugins are not here. They live in ~/Library/Application Support/JetBrains.

What writes it and why does it grow?

The IDE writes it while it indexes your projects: file indexes, caches of compiled and parsed code, and local history of your edits.

  • Every major version gets a new folder. Updating from 2026.1 to 2026.2 creates a fresh folder and builds new indexes. The old folder stays.
  • Every product gets its own folder. If you use IntelliJ IDEA and PyCharm on the same projects, each keeps separate indexes.
  • Old versions are cleaned only after a while. JetBrains says the IDE deletes cache and log directories of older versions that have not been updated in the last 180 days, so a folder can sit there for half a year.

How big does it get?

It depends on how many projects, products and versions you have, so there is no normal size. Check each version folder:

du -sh ~/Library/Caches/JetBrains/* | sort -h

Lists every IDE version folder with its size, largest last. Removes nothing. Folder names that do not match an IDE you run today are the first to go.

Is it safe to delete ~/Library/Caches/JetBrains?

WhatVerdictWhat you lose
Folder of an IDE version you no longer runSafeNothing you use. Its caches and its local history.
Folder of the version you use nowSafeIndexes rebuild on next launch; local history for that version is gone.
Deleting while the IDE is openCarefulThe IDE keeps writing and can show broken indexes. Quit it first.
~/Library/Application Support/JetBrainsCarefulA different folder: settings and plugins for each version. Not a cache.

How do I delete JetBrains caches?

The IDE's own way first. JetBrains documents Help | Delete Leftover IDE Directories: it opens a dialog where you pick the versions you no longer plan to use. For the version you are running, use File | Invalidate Caches, which JetBrains points to for removing cache files.

The manual way: quit every JetBrains IDE, then move old version folders to the Trash in Finder, or in Terminal:

rm -rf ~/Library/Caches/JetBrains/IntelliJIdea2025.1

Deletes one version's caches permanently, without the Trash. Replace the folder name with one from the du list above.

What Hoardless does: its IDE caches detector lists every folder in ~/Library/Caches/JetBrains as its own row at the Auto tier, with its size, and moves the ones you pick to the Trash after you review the plan. The move is logged in the undo log.

What comes back and when?

Only the folder of the version you open. The next launch creates it again and reindexes each project as you open it, which is slow the first time on large projects. Folders of versions you never open again stay gone.

Configuration and plugin directories are separate. JetBrains says they are kept indefinitely and must be removed by hand, which the Leftover IDE Directories dialog also covers.

Every IDE version folder, sized and listed

Hoardless shows each JetBrains version folder (Auto tier) next to VS Code caches and your build tool caches, previews the plan, and moves what you pick to the Trash with an undo log.

14-day full trial. macOS 14 or later.

Questions

Will deleting the JetBrains cache remove my settings or plugins?

No. Settings and plugins live in ~/Library/Application Support/JetBrains, a different folder. Only caches, indexes and local history are in ~/Library/Caches/JetBrains.

Do JetBrains IDEs clean old cache folders on their own?

Yes, partly. JetBrains documents that the IDE deletes cache and log directories of older versions that have not been updated in the last 180 days.

What is the difference between deleting the folder and Invalidate Caches?

Invalidate Caches clears the caches of the IDE you are running, from inside the IDE. Deleting folders by hand also lets you remove versions you no longer have installed.

Is it safe to delete the folder for the version I use now?

Yes, with the IDE quit. It reindexes your projects on the next launch, which takes a while on large projects, and local history for that version is gone.