For tools to support finding disk space eaters:
- Disks and Files Utilities – /is/apps/macos/disks-files/
- Finder and Finder Alternatives – /is/apps/macos/finder/
- Search! macOS-Focus – /is/apps/macos/search/
Contents
Due to Usage Pattern
J&P usage pattern may be a bit extreme: typically have lots of windows open, can be like
- 30-40 Chrome browser windows (windows list menu doesn’t ft onto even a 38 inch screen but requires scrolling
- plus tabs in such, sometime a single window alone can have 10-20 tabs (when doing in-depth research)
- 10-50 Terminal windows, yep – heavy user of terminal commands and typically have quite a few windows always open for commands more frequently reusing (network tools like ifconfig and nmap, for different networks)
Many open windows often means more caching and logs being kept alive and added to, and especially over time can eat up significant amounts of disk space. More in Applications below.
Applications
So, things that can be eating up disk space:
- Chrome, Google web browser
- Many open windows creates more cache material being used, which takes up disk space
- Been able to clear some even GBs from quitting / restarting Chrome
- FIX:
- First, do an effort to closing windows (wrap up research, reason for keeping it)
- Then Quit and Restart Chrome
- Dropbox
- ~/Dropbox/.dropbox.cache – the cache can hide serious amount if cached content!
- FIX: – items should be removed after 3 days but one CAN speed up process – How to clear the Dropbox cache folder – help.dropbox.com/installs-integrations/desktop/cache-folder
- Open folder (use Shift-Command-G in Finder)
- Move items to Trash
- Empty Trash
- More general on Dropbox in our Dropbox! – /is/apps/dropbox/ – section.
- Email
- macOS Mail.app – is/apps/macos/email/
- ~/Library/Mail/
- ~/Library/Mail/V5 (and maybe older V2, possibly other in future
- ~/Library/Mail/V9 (not sure when started being used but at least on macOS 12, Monterey)
- FIX:
- Don’t keep too many emails in Mail app (or any email reader)
- Archive things really important – keepers – onto file system
- Clear Trash inside Mail app
- Once in a while, DO go to ~/Library/Mail/ and see if it feels reasonable big, possibly look for any older things that possibly ‘have fallen in between chairs’ (that’s how found out had an older V2 folder laying around occupying close to 9 GB!)
- Don’t keep too many emails in Mail app (or any email reader)
- macOS Mail.app – is/apps/macos/email/
- Terminal
- Over time, opened terminal windows can create actually quite significant logs, cleared multiple GB from quitting Terminal (which usually is open all the time, with 10-50 terminal windows)
- Trash
- … don’t forget to actually empty it once in a while..
Xcode & Development Related
Command Line Tools
- google.com/search?q=command+line+tools+for+xcode
- google.com/search?q=xcode+vs+command+line+tools
- apple.stackexchange.com/questions/150978/what-is-the-relationship-between-xcode-and-xcode-command-line-tools:”You can see it as:
- The command line tools are the basic foundation. Many basic tools are needed to compile your Swift/Objective-C code.
- XCode is the IDE which brings a few additional packages with it.Xcode then us using those basic tools.”
- developer.apple.com/library/archive/technotes/tn2339/_index.html:
What is the Command Line Tools Package?
The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS. It consists of the macOS SDK and command-line tools such as Clang, which are installed in the
/Library/Developer/CommandLineTools
directory. - Installation of Xcode Command Line Tools
- Space occupied on disk, indications:
- On a macOS High Sierra 10.13.6, Oct 2021:
- /Library/Developer/ : 960 MB, completely acceptable
- /Library/Developer/CommandLineTools/ : 942.6 MB, -“-
- On a macOS Big Sur 11.6, Oct 2021:
- /Library/Developer/ : 3.77 GB, ok, that’s a fair amount more but… not too much to do about, I suspect
- /Library/Developer/CommandLineTools/ : 3.77 GB, -“-
- On a macOS High Sierra 10.13.6, Oct 2021:
Xcode
- developer.apple.com/xcode/whats-new/
- google.com/search?q=disk+space+for+xcode
- macpaw.com/how-to/why-xcode-so-big
- raywenderlich.com/19998365-understanding-and-managing-xcode-space
- Xcode 10.1 on macOS 10.13.6 (IM2713), data from Oct 2021:
- /Applications/Xcode.app : 15.09 GB
- ~/Library/Developer/ folder : 28.47 GB
- Xcode/ : 22.01 GB
- iOS DeviceSupport/ : 18.56 GB
- watchOS DeviceSupport/ : 2.42 GB
- tvOS DeviceSupport/ : 1.02 GB
- Shared/ : 4.66 GB
- CoreSimulator/ : 1.81 GB
- XCTestDevices/ : 351 bytes
- Xcode/ : 22.01 GB
- Xcode 13.0 on macOS 11.6 (MBP17), data from Oct 2021:
- /Applications/Xcode.app : 31.62 GB
Viewing package contents reveals, Xcode.app/Contents/:- Developer/ : 31.29 GB
- ..
- Platforms/ : 27.19 GB
- AppleTVOS.platform/ : 6.77 GB
- AppleTVSimulator.platform/ : 134.3 MB
- iPhoneOS.platform/ : 12.5 GB
- … iPhoneSimulator, MacOSX, WatchOS, …)
- Developer/ : 31.29 GB
- View
- ~/Library/Developer/ folder : NON-EXISTING
- /Applications/Xcode.app : 31.62 GB
Uninstall Xcode
- google.com/search?q=uninstall+xcode
- osxdaily.com/2012/02/20/uninstall-xcode/
- (On uninstalling command line tools – NOT TO DO, THESE WE REALLY USUALLY ALWAYS WANT TO HAVE / KEEP, but include links here just to show where these things are located, and separated from Xcode – locations
- Steps done on IM2713 Oct 2021:
- /Applications/Xcode.app – deleting app (15.09 GB)
- ~/Library/Developer/ – deleting whole folder (28.47 GB)
- Those two combined is about 43.56 GB (15.09+28.47)
- Emptying trash, 20.65 GB avail disk went to 88.56 GB (was more un-emptied items in trash, clearly)