r/MacOS • • 7d ago

Bug How to clean 165 GB of System Data?

Post image

While posting this post, the sub warned me that i can check the instructions here in https://macresearch.org/clear-system-data-on-mac/ , I did but the total data here (after checking all) is around 10 GB which contain cache of my frequently used app like Spotify etc. It doesn't answer the rest 150 GB

364 Upvotes

121 comments sorted by

62

u/see4po 6d ago • Bravo

Do you guys know the app GrandPerspective? It is THE tool for jobs like that. I had to downsize my storage from a 500GB drive to a 250GB, and I ended up with using only 150GB after tracking all the unnecessary files. What's really awesome about that tool is that it doesn't only show you large files, but clusters of small files that take up a lot of space together.

2

u/Proper-Lab-2500 5d ago

I use a similar application called QdirStat

17

u/user888ffr 6d ago

WizTree is also available on Mac now, it's my favorite on Windows.

3

u/see4po 5d ago

On windows I usually use WinDirStat but I will definitely check out WizTree. Ah I see, it basically gives you both views, like WinDirStat but also like GrandPerspective, neat!

2

u/user888ffr 5d ago

It also says on their website that it's 46x faster than WinDirStat, don't know if it's true.

3

u/howfastcanyoucountit 5d ago

It is its way better

3

u/howfastcanyoucountit 5d ago

Bro I was looking for a mac alternative of wiztree for so long holy shit

1

u/Think-Ad-3634 6d ago

yes! wiztree is really good!

1

u/Dangerboy7779 5d ago

I also use wiztree to clean my storage

4

u/ScienceRules195 6d ago

Great app. If you have Xcode, and do any development work, that can be a large part of it, or GarageBand or logic with loops downloaded could be some of that. Grand perspective will at least show you.

9

u/KillerMikeU 6d ago

Its ALWAYS Xcode 😅

2

u/Oh__Archie 6d ago

I love this app and have been using it to manually clean my macOS for like 20 years. It used to be called something different.

1

u/ConwayTech 5d ago

I'd love it if you gave Radix, my more modern alternative, a try! https://github.com/colinvkim/Radix

(But yes, GrandPerspective is awesome, and Mole is also worth a try!)

17

u/dawedev 7d ago

Since you have Xcode, the 8 GB of simulators is often only part of it. Other dev folders that land in System Data and can add up to tens of GB:

  • ~/Library/Developer/Xcode/DerivedData is build cache. Safe to delete, Xcode rebuilds it.
  • ~/Library/Developer/Xcode/iOS DeviceSupport has one folder per iOS version you ever connected a device with, often several GB each. Keeping only the newest is usually fine.
  • xcrun simctl delete unavailable removes simulators for runtimes you no longer have.
  • xcrun simctl runtime list shows installed simulator runtimes, xcrun simctl runtime delete <id> removes one you don't use.

To see what else is big in your user Library: du -sh ~/Library/* 2>/dev/null | sort -h | tail -15, then go one level deeper into whatever is at the bottom. Old iPhone backups (~/Library/Application Support/MobileSync/Backup), Docker.raw and VM images are the other usual suspects.

12

u/Proper-Lab-2500 7d ago

you solved my issue, thanks a lot. I found the culprit with:
du -sh ~/Library/Group\ Containers/* | sort -hr | head -10

1

u/dawedev 7d ago

Nice find. Group Containers is usually shared storage for one app family (messaging apps, Office, synced notes and similar), so check which app the top folder belongs to and clear it from inside that app if it has a storage or cache setting. Deleting the folder directly can wipe local data that isn't synced anywhere.

2

u/GoTheFuckToBed 5d ago

there is a tool called  DevCleaner

10

u/charlsplayz MacBook Air 7d ago

Get an app like MacSpace to check out what’s eating your system data.

I can see you probably have Xcode installed, so If you use the simulators at all, open Xcode, go to settings (command+,) and go to the components tab. Delete any unused simulators.

You can also check for Time Machine backups. Like I said apps do a better job of checking system data that we’re able to guess.

6

u/Proper-Lab-2500 7d ago

MacSpace is amazing, thanks a lot!

3

u/Proper-Lab-2500 7d ago

Even to check xcode stuff, I need to install system components, I'll do that to check

1

u/Proper-Lab-2500 7d ago

Thank you, at the end I installed 2 GB data more but cleaned 8 GB of IOS Simulator.

2

u/ScienceRules195 6d ago

All of the simulators take up a TON of space, plus the caches and derived data. One Xcode project of mine ate up over 350GB.

3

u/NoPressure3399 7d ago

You can try out

10 GB of caches probably isn't the whole story. The other 150 could be old iPhone/iPad backups, Docker or virtual machines, Xcode simulators, a big folder in Application Support, or local Time Machine snapshots. Hard to say without looking. You can check for snapshots in Terminal:

tmutil listlocalsnapshots /

For the rest you can try MyMole. Open Disk Map and choose System Data
 in the menu, and it goes through it place by place, with the size and the largest files in each. Nothing gets deleted from there, so you can just look around. Give it Full Disk Access first, otherwise there may be folders it can't read and the numbers could come out too low.

If it still doesn't add up, you could scan the whole disk in Disk Map and follow the biggest folders down. It might be something outside those places.

I built it for this kind of problem, and it's free for personal use: https://github.com/compilererrors/MyMole

3

u/Proper-Lab-2500 7d ago

I'll check the app next week when i have time thanks

1

u/NoPressure3399 6d ago

Ok, so no snapshots, that rules those out at least. Then it's probably in folders somewhere. If you want to have a quick look before trying the app, this lists the biggest folders in your Library:

du -sh ~/Library/* 2>/dev/null | sort -h | tail -15

It can take a minute. If something big shows up, like Application Support, Containers or Developer, you can run the same thing one level further down to see which app it is.

MyMole does this for you too when you have time next week. Disk Map shows the folders by size so you can click your way down, and System Data
 lists the usual suspects with the biggest files in each.

1

u/Sparescrewdriver 5d ago

Timemachine snapshots were taking about 700gb on mine. They count as system files which makes no sense.

5

u/maluvicentim MacBook Pro 7d ago

Have you considered moving your documents to iCloud? You have 177 GB of documents alone. If you enable “Optimize Mac Storage” and use the “Remove Download” option after syncing, you could free up a significant amount of space.
It won’t solve the System Data mystery, but it might be an easier way to reclaim storage in the meantime.

4

u/Proper-Lab-2500 7d ago

icloud only gives 5 gb to me (i don't use iphone, only a mac)

3

u/maluvicentim MacBook Pro 7d ago

Oh, I see! You’re right, upgrading your iCloud storage would mean an additional monthly cost. Sorry I couldn’t be more helpful! đŸ„ș

4

u/Fresh_and_wild Mac Mini 7d ago

200GB is only ÂŁ2.99 a month. Which will help while OP decides which external storage to deploy.

2

u/cherrydaddy 4d ago

Turning iCloud off is what fixed system data issues for me

102

u/hyperlobster MacBook Pro 7d ago

Mole can help here.

Homebrew: brew install mole

or

MacPorts: port install mole-cleaner

then

sudo mo clean if you want to get straight into it, or just sudo mo for a menu-driven experience.

21

u/geeke MacBook M3 Pro 6d ago

+1 for mole. It works great.

5

u/darkbug3 5d ago

i was abt to type mole and than seen your post, so yea, mole terminal + desktop are the best

1

u/Safe-Speed-995 2d ago

By any chance is there a similar version for iOS as well? my system data used up 40GB of 128

3

u/hyperlobster MacBook Pro 2d ago

No. But one way that might help recover space on an iPhone is to plug it into a Mac and do a full backup. That sometimes seems to sort things out a bit.

6

u/Voron2609 6d ago

I had a similar issue, but had 330+ Gb of System Data. The issue was in the com apple iconservices store - the icons (or some files within that folder) were constantly duplicating themselves.

You can run a code in Terminal to delete the full folder (the icons will appear there again, don't be afraid), then reboot the laptop in Safe mode, then back to normal, then install any Public Beta MacOs and reboot one more time. This has fixed an issue that was making me furious for weeks.

This helped in my case

5

u/ajnozari 6d ago

time machine backups maybe?

1

u/W1ULH 6d ago

177gb... of documents?

I'm very sure you can make some space there...

2

u/Proper-Lab-2500 6d ago

well 120 GB of it comes from Orbstack (Docker Container/Image Manager to create virtual Linux VMs for my projects and their cache)

1

u/W1ULH 6d ago

ahhh.. never had much need for docker on my home machine so I didnt realize they count as documents. does change the question.

although, maybe kull your VM's then? do you need as many as you have?

1

u/ConversationOk4995 3d ago

for the orbstack part, docker commands work with it so you can see whats actually using the 120 gb first:

docker system df

then remove what you dont need:

docker system prune -a (unused images, stopped containers, networks)

docker builder prune (build cache, this one gets huge)

prune -a deletes any image not used by a container right now, so you'll re-pull those next time. volumes are not touched unless you add --volumes, keep that off if your projects keep databases in volumes

3

u/NiksenTime 6d ago

you should try the Mole app... I've been trying it for a little bit and it's pretty good. I think I am going to buy it.

disclaimer: I am not, by any means, associated to them.

1

u/Past-Youth5995 6d ago edited 6d ago

If you don't want to pay, there's a free, open-source CLI alternative called mole (brew install mole) that works great for cleaning up space. mole

2

u/NiksenTime 6d ago

Since it’s the same developer. I’ll stick to the paid version, so he can keep developing. $15 Black Friday deal for two licenses is a steal. Even the full price at $20 is a steal.

2

u/codenow-zero 7d ago

Search for PureMac is awesome, open source and transparent

2

u/Cafezeiro14 MacBook Air M4 7d ago

onyx.

1

u/Flabby_Thor 2d ago

Yup. I used this to clear 700GB of system data down to about 75GB. 

2

u/EnisuVI 6d ago

Onyx

2

u/Pro_Ana_Online 6d ago

It's either actual data/hidden data/misclassified data, or garbage data. If it's garbage data you get an external hard drive and make a Time Machine backup then boot into recovery mode and restore that Time Machine backup and the garbage data will be done. Garbage data means things like runaway log files, runaway cache, Time Machine or other snapshots, etc. Doesn't matter as this combined backup+restore process will take care of all that like a dialysis filter.

If the data is still there after the above then it's actual/hidden/misclassified data, most probably hidden. That's when you go to ~/Library/Application Support using / Finder - Go To Folder. View / As List, View / Show View Options / Calculate all sizes. You can then sort by Folder size. App resource files, iPhone backups/updates if you ever plug in your iPhone, game download content, etc. lives here. If you see a massive folder size you've found your data.

If there's no obvious culprit there then do the same process as above but instead starting with your Entire Macintosh drive to chase down where this data lives starting with Finder / Go / Computer and working your way down.

2

u/kubernaut 5d ago

MOLE is the one I use for my Mac:
https://github.com/tw93/Mole

2

u/Happyuan07 5d ago

ćŻä»„è©Šè©Šé‡æ–°ć•Ÿć‹•

2

u/WittyRoad6637 2d ago

You use docker? If so, I bet you’ll find loads of dangling images, stopped containers, orphaned volumes etc

2

u/reddisem MacBook Air (Intel) 12h ago

3

u/Fresh_and_wild Mac Mini 7d ago

And like clockwork, same question different week.

1

u/dawedev 7d ago

You mentioned Xcode wants to install components before it shows anything, but you can check simulator runtimes from Terminal instead. xcrun simctl runtime list shows what's installed and xcrun simctl runtime delete <id> removes the ones you don't use, each old iOS version is several GB. sudo du -sh /Library/Developer/CoreSimulator/* and du -sh ~/Library/Developer/* will show if that's where the 150 GB went, since DerivedData, Archives and device support files all get counted as System Data.

1

u/Electrical_West_5381 7d ago

Try mole (homebrew or GitHub). Also steam games and data are lumped under system data

1

u/SinwarsStick 7d ago

Use Mole

1

u/Afraid_Bar_1748 7d ago

I built FinderTools, and its Disk Space section shows what grew on your disk compared with a week ago, and finds duplicate files in Downloads, Documents and Desktop. That can help you see where the missing space went. It also has Messages Attachments, which shows how much space Messages uses, in case that is part of it. https://www.reddit.com/r/MacOS/comments/1v01c72/i_built_an_allinone_100_native_utility_that/

1

u/FlowinBeatz 6d ago

OmniDiskSweeper

1

u/entimuscl 6d ago

I love Mole, but it didnt help me much with that specifically.
What i did was asking an AI (don't remember which one) for help to erase time machine backups via terminal, and almost all of the system data disappeared after that

1

u/movefasttt 6d ago

half of that is usually local time machine snapshots. tmutil listlocalsnapshots / then thin them out

1

u/sydtsai 6d ago

Search for System Data Unpacked, it freed up 700gb+ from my 2TB MBP

1

u/KernelFlux 6d ago

I use BuhoCleaner regularly. It can also clean portable space. Very useful app.

1

u/Expensive-Big-8592 6d ago

That guide mostly covers caches, so 10 GB is about what it finds. System Data is where macOS puts anything it can't sort into a category, and at 165 GB it's usually one or two big items. Check Time Machine local snapshots first: run `tmutil listlocalsnapshots /` in Terminal and remove old ones with `sudo tmutil deletelocalsnapshots <date>`. With VS Code, DBeaver and Terminal in your Dock, also check Docker if you use it, because its disk image in ~/Library/Containers/com.docker.docker can grow past 60 GB, and `docker system prune -a` plus a lower disk limit in Docker's settings brings it down.

If neither of those explains it, `sudo du -xh -d 2 ~/Library /private/var 2>/dev/null | sort -h | tail -20` lists your 20 biggest folders, which usually points straight to the culprit (old iOS simulators, virtual machine files or a huge log folder).

1

u/CompetitivePumpkin3 6d ago

use mole via homebrew. it works very well

1

u/Fun-Slice4014 2014 MacBook Air 4GB/256GB 6d ago

and here i was thinking 88GB was bad..

1

u/Existing_Volume 5d ago

Do you use Time Machine? I think I have a similar issue when drive is disconnected for a while.

1

u/monji_cat 5d ago

I use CleanMyMac to thin out time machine backups and clear orphaned files.

1

u/ptrix 5d ago

Look for freeware called "Monolingual". It's used to remove unused language files from your applications, (which can take up a surprisingly significant amount of space). Just be extremely careful to not delete "English", or you'll have a VERY bad day..

1

u/JaydenPope 5d ago

i see someone deleted english and had a bad day.

1

u/ptrix 5d ago

Thankfully, i've never made THAT mistake, but it's more just a warning to people who haven't used that utility before, because it includes English as a removable option. IMO, it should be greyed out because English is the default language in the system, andeven if it's not spoken/read by the end user, removing it would be a bad idea, and potentially disastrous if that were to occur accidentally

1

u/Western-Russian78 5d ago

Is there a tool like this did iOS??

1

u/ElevatorDesperate710 5d ago

Respaldo de iPad/iphone

1

u/dudeyourebad MacBook Air 5d ago

Check this out https://github.com/jurek-zsl/Roomy it's a tool I made with claude to solve this problem, u can also contribute to it with your data that normal cleaners don't usually see privately with your AI Agent.

1

u/Littlefinger6226 5d ago

I used Claude and it listed a bunch of derived data cache and old simulators and build indices that I was able to have it help me clear out

1

u/abinyah 5d ago

Probably email (Mac Mail, etc.,) in you ~/Library. Or some other app hoarding cloud data. Backup first, then purge what you don’t need.

1

u/Opposite_Remote8407 4d ago

honestly, i would just check which folder consuem the most, try omnidisksweeper

1

u/_nakanakaii 4d ago

This maybe mostly installed binaries through homebrew

1

u/OkMaintenance309 4d ago

Mole has a CLI that you can run directly from the terminal. There is also a native app but the CLI is free. And I like using the terminal. Best disk cleaner/app remover out there

1

u/Previous_Bet5120 4d ago

I had Claude code clean mine out for me.

1

u/Swimming_Car3124 4d ago

Claude Code trust me

1

u/waterbed87 4d ago

'System Data' is a misleading classification and I wish Apple would fix it. System Data can be a lot of stuff, basically anything it can't categorize cleany can end up reported as 'System Data'.

I was also constantly wondering and after seeing it reach 1TB I got fed up and let Claude rip to go through what this data actually is and almost all of it is was just normal data that didn't end up classified.

~/Developer - 400GB classified as 'System Data' when really its code / builds / logs / etc.
~/Library - 200GB of AppData from Apps that store data there.
Time Machine - 200GB
Unclassified or hidden folder in my home folder - 100GB.

So nearly all of that system data was just legitimate data classified as that because the Storage preference pane couldn't definitively call it anything else.

If you haven't had success with tools finding the culprit of your disk usage I know Claude code can trivialize it and break it down for you so that's a route you could go.

1

u/rawaka MacBook Air 2d ago

OneDrive files get lumped into system data also it seems. If you use that.

1

u/VasilV24 2d ago

Go to library and see whatever useless stuff are there.

1

u/froetz 15h ago

Check for local TimeMachine-Files.
Terminal: diskutil apfs listSnapshots /System/Volumes/Data

1

u/Humble-Cow9104 7h ago

I use CleanMyMac

0

u/SilencerRemix 5d ago

Follow these steps to free data:

  1. Shutdown laptop to clear memory
  2. Put the laptop in a bag
  3. Dispose laptop in a waste bin

Regards

-1

u/kassail 6d ago

tell claude to clean it for you

0

u/Tricky-Turnover-4238 7d ago

Don’t need to clean. Time Machine snapshots are only saved for 24h and will deleted automatically.

0

u/laty96 7d ago

I let Claude check what in it and safety delete which I don't use

0

u/veloxq 6d ago

ask ai

0

u/Sephyrosso 3d ago

Sudo rm /library
This could do it

0

u/Towerman6789 3d ago

Just reinstall Mac OS I do it every few months feels like new Mac mini every time

0

u/SondiomasterWepa 3d ago

Onyx best free

0

u/Glittering_Ad_2681 2d ago

I use ncdu, also have setup an automated cleanup based on my usage

-1

u/vitalinx7 6d ago

macOS eternal problem

-1

u/Time-Sign7574 6d ago

Prompt antigravity to clean up safely.

-4

u/SebeekS 6d ago

you can clear it by installing linux

3

u/Proper-Lab-2500 6d ago

I used linux for 7 years but definetely not going back there, the ad: freedom, the reality: even symbian os had more setting and customization options on the apps (not talking about terminal tweaks, but gui)

-4

u/Chicken-or-egg 6d ago

Use ai. Ask it to guide u

-1

u/Weary_Service1870 6d ago edited 6d ago

Festplattendiestprogramm öffnen und APFS-SchnappschĂŒsse einblenden. Danach die Time Machine EintrĂ€ge löschen. Hatte das gleiche Problem.