Lately, I have noted a lot of storage bloat on my system, to the point where it's becoming problematic for performance (in the sense that I'm running out of disk space for updates, new programs etc.). In an attempt to clean up, I used Disk Drill to get an overview, and it seems that the massive file bloat I'm seeing is related to XCode.
I rarely develop on my laptop, and if I do, I'm not developing Mac applications, so as far as I can gather, I have no use for XCode, so I uninstalled the program to free up space. This did help somewhat, but not to the level I expected.
Further investigation revealed that the majority of bloat (almost 220GB!) is taken up by files in the
In total, there are 8 subfolders, all named
<someGUID>.activeSandbox, and each containing only three files. An
<someGUID>.activeSandbox/Root/Applications/ (this is the bloated file, tens of GB), an
<someGUID>.activeSandbox/Boms/ and finally a
.SessionUUID in the
activeSandbox/ base folder.
Now, the question is, if I can safely remove these
<someGUID>.activeSandbox/ folders related to XCode? They look like temporary files to me.
As far as I can tell there is nothing in there that relates to anything but XCode which I no longer have installed on my system anyway.
What have I tried:
- Repeated restarts after uninstalling XCode - no change, files stays
- Restarts in Safe Mode after uninstalling XCode - Same as above, files persists.
So I'm wondering if I should just go ahead and manually remove these files?
Googling seems to provide conflicting answers to potential harm, but all the answers I found were several years old, so maybe someone here has new insights to share?
Note: I have had persistent problems updating XCode in the past, where the installer would basically be stuck on "installing" at around 99% for hours or even days. So these packages might be related to corrupted updates somehow.