Do keep in mind that once the Prefetch cache files are deleted, the programs might take a tiny bit longer to start for the first time. Delete Windows Update Cache. Windows update stores all the downloaded updates and cache files in a special folder called Software Distribution. Sometimes, this folder can consume more than 10GBs at a time. I have been trying to remove databases in my Safari cache forever. I went to the Apple support page and it says to go to /Library/Safari/Databases and remove the folder entitled "Databases" but no such folder named exactly that exists.
- Library Caches Folder
- On Mac Can I Remove Library Caches Cloudkit Files
- Clear Library Cache Mac
- Clear Cache Mac Os X
If you’ve lived through the last couple iterations of OS X and iOS, you’ve probably had the opportunity to develop a special love/hate relationship with iCloud. Apple’s cloud service suite is made up of many different parts and systems, and while it’s great when it works, it also has a history of being prone to hard-to-diagnose outages and, for developers, obscure error messages.
Apple has worked hard over the last couple years to make iCloud more stable and reliable, and it has largely succeeded, to the point where the grumblings about it have, at least anecdotally, subsided considerably since its introduction.
Despite these improvements, however, iCloud’s file storage offerings have always lacked a number of features that made it less compelling than, say, Dropbox for the needs of many modern apps. For example, while iCloud is mostly free and tightly integrated with both iOS and OS X, it’s limited to sharing information between multiple devices that belong to the same user—pretty restrictive in a world where services supporting multiple users (often on a massive scale) are the focus of some of the most successful apps.
One and many
Thus far, this has left third-party developers who want to build interaction between multiple users with no choice but to come up with their own home-brewed solutions for everything from user authentication to data sync, which are both complex to program and very expensive to maintain—a hard proposition in a market that favors inexpensive or free apps.
These problems have not gone unnoticed in Cupertino, however, and iCloud is getting a major overhaul in iOS 8 and OS X Yosemite. The nebulous Documents & Data “storage solution” will be replaced with iCloud Drive, which more resembles the iTools/MobileMe iDisk of old. Best of all, it’ll give direct access to all of a user’s documents and file right from the Finder.
But that’s not all: The improvements to iCloud also include a behind-the-scenes technology, dubbed CloudKit, that gives developers a brand new bag of tools poised to have a significant impact on the kinds of apps we’re likely to see in the future.
The shared cloud
For starters, CloudKit is all about storage. As before, each third-party app gets access to a “private” data store that is part of a user’s iCloud data allotment; this data is automatically synchronized across multiple devices, and can contain both structured data—like a blog post or invoice—and entire files, like a document or image. Apps like games use this to sync progress between iOS clients, while other apps—including Apple’s Pages, Numbers, and Keynote—store presentations, spreadsheets, and more.
With CloudKit, however, developers also gain access to a new “public” data store that is automatically shared among all users of their apps. The disk space used by the public store is counted towards a different allowance, which Apple allocates on a per-app basis and makes available for free with a set of very generous limits.
To programmers, this new shared data store looks like a combination between a big database and a disk drive that they can control with the same programming tools that they use to build their apps today. The big difference is that the information stored in it can be made available to multiple users, allowing them to collaborate and share information through the cloud—something that iCloud “Classic” was unable to do. For its part, Apple leverages its existing infrastructure to provide all the servers, bandwidth, storage, and maintenance required to run the service—free of charge to everyone involved.
Don’t let the term “public” put you off, though—CloudKit doesn’t force all the shared data in a big bucket that is automatically visible to everyone who installs a particular app. Instead, developers will be able to protect the information as they see fit, allowing, for example, users from a particular group or organization only to have access to specific content.
Like a server in the app
But that’s not all—developers can also use CloudKit to track changes to the underlying data and generate events when they occur. This makes it easy, for example, to send a remote notification when a message stored in the public database receives a reply, or when an invoice is approved. Again, Apple’s servers take care of all the heavy lifting, eliminating the need for developers to set up their own notification servers—and automatically scaling up to handle loads of any size.
Finally, CloudKit allows third-party apps to piggyback their authentication mechanism on Apple ID, thus making it easy to tell each user apart in a unique way without having to write and maintain a login system—and without forcing users to remember yet another password.
Like everything that Apple does these days, CloudKit is also infused with a deep-seated respect for the user’s privacy. By default, for example, Apple ID will only let developers know if a user is logged in or not, and it’ll assign an identification number that is unique but otherwise anonymous. Only with users’ explicit permission are developers capable of getting access to even a user’s first and last name; every other bit of information attached to an Apple ID identity, including e-mail addresses and physical locations, remains entirely off-limits.
Clear skies ahead
It’s not hard to see that CloudKit greatly simplifies the creation of apps that revolve around multi-user collaboration. Previously, creating a group chat app like Glassboard, or a team-based task management software like Wunderlist, would have required a significant amount of work. A developer would have to set up the server-side infrastructure required to store and synchronize all the data, plus handle the communication between different users. But with CloudKit providing that service, developers can now focus their efforts on building a great user experience right inside their iOS and OS X code.
As an added bonus, Apple has had plenty of time to fine-tune the security that surrounds iCloud, and the company’s current fixation with privacy—a much-welcome fixation, if you ask me—is likely to rub off on third-party developers, leading to more secure apps that are less likely to “accidentally” leak our data all over the Internet.
Of course, the flip side all of this goodness is that CloudKit, which is only available on Apple’s devices and operating systems, contributes to locking both users and developers into the company’s closed ecosystem, making it unsuitable for apps that need to run on multiple platforms. For smaller developers, however, it creates a unique opportunity to bring great software to an enormous audience with virtually no added investments of time or money.
Note: When you purchase something after clicking links in our articles, we may earn a small commission. Read ouraffiliate link policyfor more details.
- Related:
You can find a lot of articles on various tips for cleaning storage space on the Mac. Unsurprisingly, most of them written by companies that build and sell disk cleaning software. The truth is you can clean the disk space from junk manually, without any special software.
So, how you can clean your Mac startup disk without any specialized software?
To free up disk space on your Mac start with simple steps: empty Trash, delete files from the Downloads folder. If there is still not enough storage, then consider deleting large files. They can be found by clicking on About This Mac -> Storage -> Manage.
Here are 8 of the best disk cleaning steps:
1. Empty Trash
This is the lowest hanging fruit to start the cleaning disk space process. When one deletes any file the latter does not disappear right away.
Instead, it goes to Trash, so if you accidentally deleted something or deleted and then changed your mind, it is possible to restore the files.
This flexibility, however, comes with a price.
When deleted files go to the Trash they still using the disk space and prevent adding new data.
If you didn’t clear Trash for a long time you may be surprised by how much more free disk space you can get by cleaning it.
Just find the Trash icon in the Dock and then right-click on the icon and click on Empty Trash.
2. Clean Downloads Folder
Another low hanging fruit. It is also the safest thing one can do to clear the disk space, other techniques can be quite disruptive.
The good thing about macOS is that it has a special Downloads folder, so you don’t have to go over each browser’s settings to find out where they store downloaded files.
Download folder gets populated every time when you:
- Open a document in Safari, Chrome, or other browsers
- Download a new app in the form of dmg or pkg files
Over time the Downloads folder gets pretty big, especially when downloading big applications such as Microsoft Office or Photoshop.
For instance, the size of Microsoft Office download (DMG file) is around 4GB.
Once the application had been installed there is no even a single reason to keep the DMG file on the disk – you can always download it again when needed.
One thing you should do before cleaning the Downloads folder is to eject all DMG disks.
How to open downloads folder on a Mac
Use the Finder app
The easiest way to open the Downloads folder is by using Finder app. The Downloads folder usually appears on the Sidebar (left panel of the Finder).
If the folder does not appear you can always enable it in the Finder menu: Go to Finder Preferences, click on the Sidebar tab and then select the Downloads option under the Favorites section.
Or you can just go directly to the folder. Use Shift+Command+G key combination and in the Go to the folder pop up window type “~/Downloads” and hit Enter.
Use Chrome
After downloading anything Chrome displays a download status in the status bar (bottom).
If you click on the arrow next to the downloaded item it and then click “Show in Finder”, then Chrome will open the Downloads folder inside the Finder app.
If you closed the status bar after downloading a file don’t worry. You can always see the downloads history by using Shift+Command+J key combination (or type chrome://downloads/ in the URL bar).
From this window, you can either click again on “Show in Finder” or click on the icon with three dots and choose Open Downloads Folder.
Use Safari
Use Option+Command+L key combination inside Safari.
Use Firefox
Use Command+J key combination to bring up Downloads history.
Now go ahead, review all the files in the Downloads folder, save the ones you need and delete the rest.
3. Use Manage Storage To Find Out The Junk Files
One of the easiest ways to estimate what’s taking up disk space on your Mac is to use Storage option (available in macOS Sierra or later).
Just click on the Apple logo in the top left corner of the screen and then click on About This Mac (first option).
Now, click on Storage tab and it will display an aggregated view of types of files you have.
For example, on my MacBook, the disk is shared by:
- System files: 39.36GB
- Apps: 23.65GB
- iTunes: 7.89GB
- Documents: 6.36GB
- iOS files: 4.34GB
- Other volumes: 3.9GB
To get a more detailed view click on the Manage button and let the system to update info.
The first option in the view is Recommendations.
For instance, macOS recommended me to:
- Store files in the iCloud
- Optimize Storage
- Empty Trash automatically
- Reduce Clutter
Let’s review each recommendation.
Store files in the iCloud
This is a great option with a caveat. By default, everyone gets 5GB of free space when opening an Apple Store account (pretty much anyone who has a Mac).
However, 5GB is an extremely low storage option, so Apple is upselling their iCloud and they want you to subscribe for more space.
The cheapest plan is 50GB for $0.99 per month, less than $12 a year. However, most people would need at least 200GB which costs $2.99 per month.
If you are Ok with the additional cost then this is a great option. macOS will automatically back up files to the iCloud and only keep the latest files on the disk.
Obviously, you will still be able to pull the files you need later to your local disk.
Optimize Storage
If you frequently download and watch movies on iTunes then this is a nice option.
While you can always delete the movies you already watched enabling this will allow you to not worry about maintaining movies and TV shows.
To enable click on Optimize button and then confirm your decisions.
I enabled this option just in case.
Empty Trash Automatically
We already know about the benefits of periodic Trash cleanup, so the recommendation seems to make sense to implement.
However, I am not very comfortable suggesting this to you.
The last thing I want is to learn that the file I deleted 30 days ago and suddenly need now, was automatically removed.
I heard about users that used Trash as temporary storage. They would delete the file for some period of time and then restore it when needed.
If this sounds like someone like you then this recommendation will not be useful.
Reduce Clutter
This will allow you to manually go thru the files and identify those that may be deleted.
Click on Review Files and it will change the view Documents. Here you have 3 options: Large Files, Downloads, and File Browser.
We already covered Downloads.
Large Files gives you an option to get big gains by deleting the biggest files you have on the disk. It’s simple math, deleting 10 1GB files will free 10GB space when deleting 100 1KB files will only free 0.0001GB.
The last tab, File Browser, allows seeing documents created by all applications on the Mac.
The process of sifting through the File Browser is tedious and requires a lot of time, but in my opinion, this is the most valuable view.
Since the largest files are listed at the top I was able to quickly identify two issues:
I had 7.89GB of Music hidden on my drive.
This happened when I downloaded some MP3s from the Internet and uploaded them to my iPhone. I then deleted the MP3s from the disk, but they still were somewhere on the disk. They are not available on iTunes either, the only place I see them is here.
So I opened the folder in the Finder, drill down to iTunes Media and then Music folder, found the files that I thought were deleted and then moved them all to Trash.
Immediately I was able to free 7.8GB of hidden space.
Another app that does not remove files cleanly is iMovie.
After working on a movie clip that contained a lot of different smaller clips I deleted the project and thought all files were gone as well.
Only in File Browser, I was able to see that the clip and its copy are still taking space.
The interesting thing is that I couldn’t see it in the iMovie app. Deleting those files freed another gigabyte.
There are other sections in Storage Manage view and I strongly encourage to go thru all of them because everyone has a different computer setup. I just want to add some notes about two of them.
iOS Files
If you have an iPhone the backups will appear here. If you have multiple backups (as I do) I suggest deleting old ones to save space. All you need is the last one really.
While I don’t use the Mail app on this MacBook, on the Macs where I do, I periodically delete messages with attachments. While messages themselves are usually, the attachments can take a lot of space.
4. Find and delete duplicate files
Conventional wisdom tells us that file copies take additional space and it makes sense to find and delete duplicate files if you want to free some space.
In fact, some 3rd party cleaning tools specifically sell removing duplicate files feature as one of their selling points.
But macOS is not Windows.
If you have been upgrading the operating system on the Mac (and have macOS High Sierra or later) then your drive must be in APFS (Apple File System) format.
One of the features of APFS is that duplicates do not take additional space on the disk.
I decided to test this claim myself with following steps.
I downloaded Windows 10 iso to my Downloads folder.
The available free space on my startup disk immediately decreased by 4.8GB (the size of the iso file).
Then I copied the file into 5 different folders on the same disk. The space used and space available stayed the same.
Then I started deleting the files. I deleted 4 copies without affecting the free space. Then I deleted the original file.
Available space on the drive did not change.
Only when I deleted the last copy of the file I was able to claim back the free space.
By the way, I was deleting files from Trash as well.
Then I decided to see if I can trick macOS by renaming the file.
I downloaded the same gigantic file again. Then did copy and paste it in the folder.
Space did not change.
I made multiple copies with different names, but the effect was the same as in the first test.
This means macOS is smart enough to know that the file copy is not just the name, but also the contents of the file.
Bottom line: You don’t need to worry about duplicate files because they do not take additional space on disks formatted as APFS.
On the other hand, if you deleted the file and space did not change it means there is still a copy of the file somewhere because space does not get freed until the last copy of the file gets deleted.
How to know if your disk is in APFS format?
If you have an SSD disk and macOS High Sierra or later then the startup disk would be in APFS format.
If the Mac is on macOS Mojave or later then the disk in APFS.
If you still in doubt there is a simple way to find the disk format.
- Start Disk Utility from Spotlight Search
- Click on Macintosh HD
- In the details page, you will see the format of the disk
5. Move Files To An External Storage
Most of the time we don’t need to store all files on the Mac startup disk. Most files, e.g. pictures from the last vacation, school graduation videos, etc, can be stored on external storage.
As we established earlier, one of the great ways to store files externally and save space on the disk is to use iCloud. The disadvantage of this approach is the cost.
Most people are reluctant to pay a monthly fee because small monthly fees tend to add up to considerable amounts over the span of multiple years.
If you are one of those people who buy a cable modem instead of renting it from the cable company (as I do) because with one-time purchase you recoupe the investment and end up with your own device then consider buying an external drive.
There are two main types of external storage currently: external SSD drives and flash drives.
You may need both as they have different purposes.
I spent numerous hours researching the best drives and if you need advice check the drives I personally recommend:
By the way, many users report that Storage screen displays that Documents files take much more space than they see in the Documents folder.
One of the things that get reported as Documents is Time Machine backups.
If you have Time Machine enabled and the snapshots stored locally eventually the entire disk may be claimed by Time Machine.
While Time Machine deletes old backups to free up some space it still tends to take as much space as available.
The solution is to either back up to an external drive or partition the startup disk and point TM to the new partition to limit the size of the snapshots.
Read more here: What Does Time Machine Backup
6. Use Compression To Shrink Files And Folders
Compress utilities
Since people started using personal computers we were always in need of extra storage.
One way to save on storage is by compressing the files. When files are compressed they take less disk space.
The downside is that files are usually are not readily available for usage, so this approach is best for archiving rarely used files.
There is an easy way to compress files and folders in macOS.
For instance, I had the Documents folder on my MacBook which I wanted to compress. The size of the folder is 257.2MB.
I opened the folder in the Finder app, right-clicked on it and selected “Compress “Documents”” option in the pop-up menu.
The Finder created one file which contained the entire folder and the size of this file was 211.9MB.
So, if I delete the original folder and keep the compressed file I would be able to save 18% of disk space.
While savings are not huge, you should know that Compressing utility in macOS is very rudimentary. There are other applications that can get better results.
I didn’t investigate which archivers are the best, I picked just a random free app and created a .7z archive with BetterZip app.
The latter produced a file with 184.6MB size which saved 29% of the original space.
I am sure there other apps that can compress better and I promised to write a comparison article later.
Create a compressed disk image
Did you know that you can create DMG files yourself? DMG stands for Disk iMaGe and you can create one yourself.
- Start Disk Utility from Spotlight Search.
- In the Disk Utility menu click on File, then New Image, and then Image from Folder. Or use the Shift+Command+N key combination.
- In the folder, search dialog find the folder from which you want to create an image and click on Choose button.
- Enter the name of the disk image file and in the Image Format select the compressed option.
- Click Save
The folder I used as an example was packed in an image of 223.3MB size, which is even worse than the compressed folder.
7. Clear Cache Files
If you were researching ways to remove unwanted files from the Mac, you definitely saw advice on clearing the cache. The topic is controversial in my opinion and I will explain why.
What are caches on Mac?
Caches on Mac designed to improve the performance of the applications.
For instance, Safari will cache images from the web page so when the user visits the page the second time Safari can upload the image from the cache and avoid using internet bandwidth to download it from the server.
Since the local disk is faster than the network the page will load up faster.
More Safari and other applications save in cache, faster they perform. The downside is the cache files should be stored on the local disk and take the precious space needed for other applications.
Most applications, especially those written by Apple developers, try to purge the stale cache. For instance, if you visited the web page yesterday then the cached page will load faster today and tomorrow.
But if you didn’t visit the web page for a year then it does not make sense to keep its cache. Safari and other browsers will delete old cache periodically to free space for more fresh and relevant data.
But as applications are written by individual developers, not all developers are created equal.
Some app developers may care very little about the additional work required to keep cache under control. So these applications may eventually have their cache bloated and need some way of trimming it down.
What happens if I delete all cache files on Mac?
When all cache files get deleted on Mac the applications which used cache for performance improvement will slowly build it up again.
When Safari needs to download a web page, it first checks its cache in case the file can be uploaded from the local storage.
Since cache was purged, Safari will download the web page from the Internet first time, save it in the cache again, so the next time it can read the page from the local drive.
Remember the time when you first opened your Mac?
It did not have any cache in the beginning because applications do not come with cache preinstalled. The cache gets built over a long time.
Was Mac slow at the beginning?
I don’t think so.
Did you notice it got faster over time because the applications had a chance to save some data on the local drive?
I doubt. To me, it feels the same.
The difference is noticeable when you have slow internet, e.g. dial-up.
In the US internet speeds over 50MB/s are very common, so saving the browser cache is not as important as it used to be 10 years ago.
Is it safe to delete cache files on Mac?
In 99.9% of cases deleting cache files should be safe.
Applications supposed to use cache files as a way to improve their performance. If the cache files are deleted the application will add it back to the cache if needed.
This is how it supposed to work. Would I bet my life on it? Of course, not. There are as many cache implementations as there are developers.
Can some developers write the application to depend on the existence of some files? Sure.
Can application stop working after some of its files get deleted?
Absolutely.
During my development career, I saw so much bad code so nothing can surprise me.
There are only two hard things in Computer Science: cache invalidation and naming things.
Phil KarltonAnyway, while I don’t see value in deleting the cache let me show you how to do it as safe as possible in case if you want to go this route.
How to know which cache files to delete?
Most applications use the same /Library/Caches folder to keep their cache files. Purging this folder should be enough to release significant space on the Mac. Alternatively, all browsers have the ability to clear cache from their menus.
Before deleting anything on the computer I strongly suggest backing it up.
Library Caches Folder
So, if you end up deleting wrong files or some applications start misbehaving you can always go back in time when everything was green and happy.
Clearing cache in browsers
Clearing Chrome cache on Mac
- In the Chrome use Shift+Command+Delete key combination to bring up Clear Browsing Data dialog
- Switch to Advanced tab
- Uncheck all checkboxes except Cached images and files
- In Time Range select All Time
- Click on Clear Data button
We only deleting images because they take the most space and we don’t want to lose browsing history and stored passwords.
Clearing Safari cache on Mac
In the Safari browser use Shift+Command+E key combination or find Empty Caches option in Safari’s Develop menu.
Clearing Firefox cache on Mac
- Click on Clear Recent History under Firefox’s History menu
- Alternatively, use fn+Shift+Command+Delete key combination on MacBook
- Uncheck all boxes except Cache
- Set Time range to clear to Everything
- Hit Clear Now button
Deleting /Library/Caches folder
There are two /Library/Caches folders: one that starts with Tilda (~) and one that doesn’t. The former is a user cache and the latter is a system cache. If I were you I would never touch anything in System.
The steps to clear User cache are the following:
- Start the Finder app
- Under the Go menu click on Go to folder item
- In the little dialog type ~/Library/Caches (make sure it starts with Tilda)
- Do not delete top-level folders under Caches. Instead, drill down to each folder and delete everything under them.
Cleaning CloudKit cache on Mac
Some users ask if it is safe to delete CloudKit folder in Caches. The CloudKit folder is needed for macOS to know which files to upload to the iCloud. They keep the history so syncing happens faster. If the CloudKit folder is too big, the best way to approach is to change caching parameters in System Preferences.
What is CloudKit on Mac?
CloudKit is a service (program) that runs on Mac and manages data transfer from the computer to iCloud. Every time a new picture is added on the Mac, the CloudKit makes sure that it gets backed up in the Apple iCloud server.
Well, all this is good, but why is iCloud taking space on your Mac? What is CloudKit cache and why do you need it?
Similar to browsers, the CloudKit uses a cache to reduce the network bandwidth (data usage). Instead of deleting the iCloud cache, it’s better either to reduce the cache size or turn off caching completely.
Let me show how to do it.
On Mac Can I Remove Library Caches Cloudkit Files
Reducing iCloud cache
Steps to clear iCloud cache are following:
- Click on Apple Logo in the Apple menu
- Click on System Preferences
- Locate and click on Sharing icon
- Click on Content Caching
- Click on the Options button
- In the pop-up window decrease the cache size
- Restart Mac for changes to take effect
Turning off iCloud cache
If you don’t want to use iCloud caching, then turning it off in System Parameters is a better alternative to deleting CloudKit cache from the Finder.
Steps to turn of iCloud cache are following:
- Click on Apple Logo in the Apple menu
- Click on System Preferences
- Locate and click on Sharing icon
- Uncheck Content Caching option
- Restart Mac for changes to take effect
8. Flush DNS cache
The last thing the experts suggest to do is flushing the DNS cache.
Clear Library Cache Mac
The reason to flush DNS is generally to fix problems with connection to specific web sites. Flushing DNS does not clear significant space on the disk, so I will not do it here.
I used to do it often when I was setting up servers and playing with their domain names. However, for most Mac users I believe this step is unnecessary.
9. Upgrade your disk
While it is impossible to replace the disk in new MacBooks certain laptop models can be upgraded.
Clear Cache Mac Os X
I found a good SSD solution for some old models: Feather M13 SSD. With Feather SSD you can upgrade local storage up to 1TB if your MacBook is:
- MacBook Air 2010 – 2017
- MacBook Pro Retina 2012 – 2015
- MacPro Late 2013
- Mac Mini Late 2014
Check the compatibility chart to see if your MacBook can be upgraded.
Conclusion
We reviewed some ways to remove unwanted and junk files from the MacBook to free space.
By implementing the suggestions above I found an additional 8.3GB space on my 128GB disk (almost 7% more space).
Topics:
Image credit: Flickr