PhpStorm: Remove old caches/settings in macOS

For every new major version, PhpStorm creates new folders for caches and settings. And despite having a successful upgrade, the old folders won’t be removed automatically. This behavior uses much unnecessary disk space.

The most used disk space I could found is dedicated to the caches, mainly the index of all projects. Since the index is renewed for every project after every major update, the old index is useless. For me, it has a size between 3,6 GiB and over 9 GiB – per major version!

PhpStorm major version cache sizes

You can find the caches in ~/Library/Caches/JetBrains ordered by major version. All folders with outdated version can be deleted here.

The second directory is dedicated to the settings. Even if they’re much smaller (in my case around 95 MiB), the old ones are still useless. You can delete them in ~/Library/Application Support/JetBrains.

Leave a Reply

Your email address will not be published. Required fields are marked *