by voidUpdate · 10mo ago · 0 comments
I occasionally use a macbook pro at £WORK for a few apple specific processes, and it currently has 188.67gb of "system data" that I have no idea how to clean up or remove. It's marked separately from the 11.01gb of macOS in the storage settings, and it constantly complains about the disk almost being full. Updating and restarting don't clear it, I wish I could just rm -rf it all. Does anyone know how I can at least see what it is, and potentially even clean it up?
EDIT: Thanks for the CleanMyMac recommendations, the 57.6gb of xcode caches that didn't show up in the "developer" section of the storage settings might have had something to do with it
I highly recommend Daisy Disk[0], which shows a folder level breakdown of your disk space usage. Hyperspace[1] is pretty nice as well. It works well if you have a lot of duplicate files. It uses APFS clones to reclaim the disk space.
/System/Volumes/Data/Users/<your_user>/Library/Containers/com.apple.Safari/Data/Library/Caches/CloudKit/
I need to `rm` it at least once a month, I ran `du -sh` and it takes 153gb on my machine
If macOS is using 153GB for iCloud cache, that’s only a bad thing if it’s not giving it back up automatically if your filesystem starts getting full. Because it means you have local copies of things that live in iCloud, making the general experience faster. In that sense, you want your filesystem to be “fully utilized”. The disk viewer in macOS that shows you filesystem utilization should even be differentiating this sort of cache from “real” utilization… this cache should (if everything is working right) should logically be considered “free space”.
Now of course, if there are bugs where the OS isn’t giving that storage back when you need it, that all goes out the window. And yeah… bugs like these happen too damned often. But I still say, the idea is actually a good one, at least in theory.
In fact, avoiding deleting it in case the user gets it again, is going to put fewer write cycles on the SSD, assuming you're going to write it to the SSD at all. The only alternative I can think of is keeping everything from iCloud in RAM, but that is a pretty insane idea. (Also, then the first thing you'd get is people complaining that iCloud eats up all their 5G data caps, etc.)
du -hs ~/Library/Caches/*
This will show you the cache size for each application.You can go to the folder ~/Library and then delete what you want.
To open the folder from a terminal: cd ~/Library open .
In the Finder, you can enable "Calculate all sizes" from "View options," which will calculate folder sizes to understand what to clean first.
This folder contains data from all apps; sometimes it is cache, sometimes persistent data. You will find all your previous apps taking gigabytes...
You don‘t need to buy the full version, you can just use the info and delete it manually in Finder.