惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
J
Java Code Geeks
Martin Fowler
Martin Fowler
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
博客园 - 【当耐特】
Y
Y Combinator Blog
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
博客园 - 司徒正美

ashishb.net

A day in Luxembourg - the richest country in the world I was asked to install malware during a fake interview Book summary: Breakneck - China's quest to engineer the future by Dan Wang Book summary: How to Teach Your Baby to Read Book Summary: The Discontented Little Baby Book by Pamela Douglas Introducing Amazing Sandbox - run third-party tools and AI agents securely on your machine Why software outsourcing gets a bad reputation? Book summary: The Natural Baby Sleep Solution by Polly Moore A day in Antwerp, Belgium Journey of online influencers Two days in Brussels, Belgium Shortcuts - when we love them and when we don't A visit to Rakhigarhi Three days in overhyped Paris Empty Japan, crowded Tokyo The real lock-in in GitHub is not the code, but the stars 11-day Norwegian Breakaway East Caribbean cruise Sanskrit and Sri Lankan Air Force Use REST with Open API The Achilles heel of American capitalism Costa Rica in 4 days At a juice stall in Sri Lanka A short stay at Warsaw, Poland Best practices for using Python & uv inside Docker Two days in Vilnius, Lithuania Pregnancy Why there aren't many digital nomads from India Two days in Riga, Latvia To keep your machine secure, run third-party tools inside Docker Family Ties in Your DNA: Some relatives are closer than others
How IntelliJ IDEs waste disk space
Ashish Bhatia · 2025-09-14 · via ashishb.net

I love IntelliJ IDEs. I use Android Studio for Android, PyCharm for Python, and GoLand for Go. They are powerful.

I just wish they didn’t fill my 500GB disk as if there is no tomorrow.

For example, with IDE settings left over from old installations.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
$ du -shc ~/Library/Application\ Support/JetBrains/* | sort -h
...
264M    JetBrains/PyCharm2023.2
359M    JetBrains/PyCharmCE2023.2
382M    JetBrains/PyCharmCE2023.3
387M    JetBrains/PyCharmCE2024.1
625M    JetBrains/GoLand2023.2
927M    JetBrains/GoLand2024.1
938M    JetBrains/GoLand2023.3
950M    JetBrains/GoLand2024.2
...
5.3G    total

If you check inside, it is mostly “plugins” that are consuming the disk space. It is safe to delete all the old versions of the settings unless you are planning to downgrade.

Google built Android Studio on top of IntelliJ IDEA. And Android Studio is no better either.

1
2
3
4
5
6
7
8
9
$ du -shc ~/Library/Application\ Support/Google/* | sort -h
...
228M    Google/AndroidStudio2022.3
230M    Google/AndroidStudio2023.2
231M    Google/AndroidStudio2023.3
233M    Google/AndroidStudio2024.1
240M    Google/AndroidStudio2024.2
241M    Google/AndroidStudio2023.1
...

It is safe to delete all the old versions of Android Studio unless you are planning to downgrade.

And what if you got errors in their IDE?
Well, that can lead to a CPU profiling data dump worth GBs as well. And it is completely safe to delete it.

1
2
$ du -shc ~/java_error_in_pycharm.hprof
2.6G    ~/java_error_in_pycharm.hprof

And then there are obsolete cache every time you upgrade one of their IDEs

1
2
3
4
5
6
7
$ du -shc ~/Library/Caches/{Google,JetBrains}/*
...
2.5G    /Users/ashishb/Library/Caches/JetBrains/GoLand2024.1
2.8G    /Users/ashishb/Library/Caches/JetBrains/GoLand2024.2
2.9G    /Users/ashishb/Library/Caches/JetBrains/PyCharmCE2024.3
482M    /Users/ashishb/Library/Caches/JetBrains/PyCharmCE2025.1
...

It is safe to delete all the old versions of the cache unless you are planning to downgrade.

All in all, I recover about ~10-20GB+ every quarter by just deleting these files.
The other big culprit is Docker, but that’s a story for another day.