Gangmax Blog

MacOS Clean Up

Today I did some disk space cleanup on Mac. I used “OmniDiskSweeper“ to find the target files, which is a freeware disk space analyzer utility for macOS.

Clean old version IntelliJ cache files

I find “IntelliJ IDEA” has a lot of old version cache files in the “~/Library/ApplicationSupport/JetBrains” directory. And there’s a safe way to clear them(from here).

Open “IntelliJ IDEA”, go to “Help -> Delete Leftover IDE Directories”, you can do the clearance safely.

Clean up “Homebrew” cache files

From here

trash $(brew --cache)

Note that “trash“ is a Homebrew formulae and CLI tool that moves files or folder to the trash.