Library Caches Mac Huge


Delete caches and save disk space | 17 comments | Create New Account
Click here to return to the 'Delete caches and save disk space' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I've been a fan of the free JDiskReport for finding files and folders sitting there taking up space.
  1. Dec 08, 2011  The user caches folder sits in /Library/ and contains cache files from nearly all applications that are actively used in Mac OS X.
  2. May 29, 2015  19 /Library 1 /net 0 /Network 11 /private 1 /sbin 229 /System 408 /Users 1 /usr 1 /Volumes 680 / 680 total As you can see the system folder is huge - 229GB!! This has actually grown by 5GB since i deleted some stuff. However, if I look at the system folder via finder it says it is only 7.4GB in size (see attached screenshot).

Firstly we are going to want to clear the cache on Mac OS Mojave. Simply put your cache is a type of memory that is stored temporary to make access to frequently used applications such as CPU applications or browsers also have a cache reserve for quick access to frequently accessed website.

---
zs

For an Intel equivalent of the disk space usage, try Disk Inventory, also free.
Also, to skip the typing everytime & for a graphical interface, these options are available in both maintenance tools of Onyx and iTweax.
The heavier-duty Onyx actually doesn't indicate the amount used by the Cache, which the light-weight iTweax does.

I recently recovered 5 gigs of hard drive space using Tiger Cache Cleaner. My iBook also starts up and runs noticeably faster now.

$ du -k ~/Library/Caches/ | sort -n
Great for spotting where that space is going
(you may need to sudo it)
$ sudo -k ~/Library/Caches/ | sort -n > du_cache.txt
to get a text file

I tried this:
Doesn't work...

---
Father of Jeremy Logan

I meant to add, that I want to add something like this to my ~/.bashrc:

---
Father of Jeremy Logan

just use a . (ie. period) in place of pwd... and no quotes. FYI: in unix the . stands for the current directory and a .. stands for the parent directory.

It's easier than that!
du -k | sort -n
du defaults to the present directory

A good start to analyse your file system is WhatSize, an all-mac program, universal binary, small, fast and free.
(Comparable to TreeSize on Win-Systems)
-- brf
AppleJack, among other things, will clean both system and user caches, as well as feed the pets and repair your permissions. Welll, maybe not the pets thing, but it is a lovely program.

---
--
Adam C.

I'm not sure if this hint has been posted before but if you get info on each application file there are installed language options. I went through all of my apps and deleted all of them except english. Most times this will halve the size of the app. Apple is notorious for installing 12 different languages for each app. I believe there is an apple script that does this automatically too.

Just be careful about deleting some application localizations. Some applications may have dependencies to those localizations. Some time ago, I remember a problem when someone tried to delete localizations, and they ended up having to reinstall that application.

Yep, certain apps can mysteriously misbehave after you've deleted their language localization files. And Apple software updates can reinstall ones you've deleted so it's not necessarily a one-time removal routine.
I don't see any reason to risk removing those files unless reclaiming disk space is a necessity and there are no safer alternatives.

I can recommend Monolingual (monolingual.sourceforge.net), a neat little software that does just that - removes language resources you don't want/need. I've been using it for a couple of years now without problems (making sure never to remove any of the English varieties (my system language).
Anders

Games

Just for reference, I will reiterate what has already been said about the long-term importance (or lack there of) of files in the ~/Library/Caches directory.
Recently I discovered a bug in an application (the producer of said application was 'some kind of fruit company' who shall remain nameless), and the top level tech that I was working with confirmed that its no big deal to delete the contents of the ~/Library/Caches directory.
I'm not advocating that you empty the directory and then lock the folder so that it can never be populated, nor am I advocating that you empty the directory at all. I'm simply stating that you can empty the directory and its not a big deal.
If your Caches folder is out of control, then you should think about some sort of cleaning.
For comparison purposes, here are the current sizes for my (Mac OS X created) Caches folders:
/Library/Caches
24.7 MB
/System/Library/Caches
11.6 MB
/private/var/root/Library/Caches
16 KB
~/Library/Caches
80.2 MB
The oldest directory within the ~/Library/Caches directory was modified Apr 4 2006.

I'd be cautious deleting ~/Library/Caches/Metadata because it contains Spotlight proxy files used by iCal, Safari, and other apps. Something will eventually trigger those files to be regenerated but before that happens Spotlight searching may be temporarily crippled. I discovered that awhile ago with Safari bookmarks and eventually deleted and restored the Bookmarks.plist file to force proxy files to be rebuilt after other methods had failed to do it.

First, a true confession: Until very recently (i.e. today) I didn't know about the need to periodically delete the cache and as a result, mine was gigantic.
I deleted the cache by dragging it into the trash and then emptying the trash. Then I told the computer to restart. I understand it takes awhile to rebuild the cache, but I'm not sure what 'awhile' means. It's been almost 2 hours now and I'm wondering if that's normal for the (gulp) years worth of stuff that was stored in my cache. How many hours should I let this continue before taking some other action?
Thanks for your help.

So, your Mac is running out of storage. You try to figure out what’s taking up your disk space by clicking the Apple logo on the top-left of the screen, selecting About This Mac, and hitting the Storage tab.

To your surprise, you see a yellow bar representing “System” that seems to occupy way more space than you think it should. In the example above, it only shows 207 GB, but take a look at this Apple discussion — some Mac users report that System Storage takes an astonishing 250 GB.

Worse yet, you have no idea what’s included in “System” storage, because clicking the “Manage” button brings you to this System Information window… and the “System” row is greyed out.

Why does my Mac system require so much space?

What does it contain?

Is it safe to remove some of those system files?

How do I regain more storage space?

Questions like these may easily get to your head. Although my Mac now has a good amount of disk space available, I’m always wary of files that are taking up more space than they should.

I have no idea why “System” is greyed out while “Documents,” “System Junk,” “Trash,” etc. allow you to review the files based on size and type. My hunch is that Apple does this on purpose to prevent users from deleting system files that could lead to serious issues.

What Files Are Included in System Storage on Mac?

Library Cache Lock

During my research, I found many people report that Apple counts iTunes backup files and app caches (e.g. Adobe video cache files) in the System category.

Since it’s greyed out and we are unable to click on that category for deeper analysis, we’ll have to use a third-party app to assist.

CleanMyMac X is perfect for this kind of analysis. Since I tested the app in our best Mac cleaner review, it immediately came to my head when I saw “System” was greyed out in Storage. Note that CleanMyMac isn’t freeware, but the new “Space Lens” feature is free to use and it allows you to scan your Macintosh HD, and then show you an in-depth overview of what’s taking up disk space on your Mac.

Step 1:Download CleanMyMac and install the app on your Mac. Open it, under “Space Lens” module, first click the yellow “Grant Access” button to allow the app to access your Mac files and then select “Scan” to get started.

Mac Library Caches

Step 2: Soon it’ll show you a folder/file tree and you can hover your cursor over each block (i.e. a folder). There you can find more details. In this case, I clicked “System” folder to continue.

Step 3: The file breakdown below indicates that some Library and iOS Support files are the culprits.

The interesting part is that the System file size shown in CleanMyMac is much smaller than the size shown in System Information. This puzzles me and makes me believe that Apple definitely has counted some other files (not real system files) in the System category.

What are they? I have no clue, honestly. But as reported by other Mac users who experienced the same issue, they said Apple also considers app caches and iTunes backup files as System files.

Out of curiosity, I ran CleanMyMac again for a quick scan. That app found 13.92 GB in iTunes Junk. Further review revealed that the junk files are old iOS device backups, software updates, broken downloads, etc.

But even after adding this amount to the original system files returned by CleanMyMac X, the total size is still a bit less than what’s returned in System Information.

If cleaning the System Storage is still not enough to bring your Mac available disk space to a normal level (i.e. 20% or more), see below.

What Else Can I Do to Reclaim More Disk Space?

There are tons of ways out there. Here are a few of my favorites that should help you get back a decent amount of space quickly.

1. Sort all files by size and delete old large files.

Open Finder, go to Recents and look at the Size column. Click on it to sort all recent files by file size (from large to small). You’ll have a clear overview of what items are eating up a large amount of space, e.g. From 1 GB to 10 GB, and from 100 MB to 1 GB.

On my MacBook Pro, I found a few large videos that could be transferred to an external drive.

Note: If the Size column doesn’t show up, click on the Settings icon and select Arrange By > Size.

2. Remove duplicate files.

Don’t forget those duplicates and similar files! They can stack up without you being aware of it. Finding them is sometimes time-consuming. That’s what Gemini 2 is designed for. Simply select a few frequently used folders (e.g. Documents, Downloads, etc.) in the main zone of Gemini.

It then scans them and returns all the duplicate files that might be worth removing. Of course, it’s always a good practice to review them before doing so. You can also read more from our detailed Gemini review here.

Wrapping It Up

Ever since Apple introduced the Optimized Storage feature, Mac users got the option of saving space by storing content in the cloud. Apple also has several new tools that make it easy to find and remove unneeded files.

That bar under the Storage tab is beautiful. It does allow you to get a quick overview of what’s taking up the most space on our hard drive. However, it still lacks insights into the “System” category as it’s greyed out.

Hopefully, the guides above have helped you figure out the reasons you’ve got so much “System” data, and most importantly you’ve reclaimed some disk space — especially for new MacBooks pre-installed with flash storage — every gigabyte is precious!