Mac guide
How to clear cache on your Mac, safely
Updated
Caches are copies of data that apps and macOS keep so they don't have to download or work it out again. They are meant to be thrown away, but not all of them are worth clearing, and a few are better left alone. This guide covers what macOS already does, how to clear Safari's cache, which cache folders you can empty by hand, and what to leave to macOS.
Short answer: you rarely need to clear caches by hand, because macOS removes caches it can rebuild when space runs low. To clear one app's cache, quit the app and empty its folder inside ~/Library/Caches. For Safari, use Safari › Settings › Privacy › Manage Website Data. Leave the system cache folders alone.
These steps use the System Settings, Finder and Safari wording in macOS Sonoma 14 and later, including macOS 27.
1. What a cache is
An app cache holds things like downloaded images, web pages, thumbnails and previews. Deleting it doesn't delete your documents or settings: the app downloads or rebuilds what it needs the next time you use it, so it may open more slowly at first, and a few apps ask you to sign in again.
Your own caches live in ~/Library/Caches, inside your home folder, with one folder per app. Starting up in safe mode clears some system caches, such as font caches, which macOS creates again as needed. Some apps that are built on web technology, such as Slack, Discord, Microsoft Teams and VS Code, keep their caches in ~/Library/Application Support instead.
2. What macOS clears for you
When your Mac needs space, macOS clears caches and logs that are safe to delete, such as temporary database files, interrupted downloads, staged macOS and app updates and Safari website data. A cache that looks big today often shrinks on its own. If you're short of space, start with how to free up space on your Mac: large files, old downloads, apps and iPhone backups usually free far more than caches do.
3. Clear Safari's cache
To remove the data websites have stored, including their cached files:
- Open Safari and choose Safari › Settings, then click Privacy.
- Click Manage Website Data.
- Select the websites you want to clear and click Remove, or click Remove All.
Removing website data can sign you out of websites. To empty only Safari's cache and keep cookies, turn on the Develop menu: choose Safari › Settings, click Advanced, select Show features for web developers, then choose Develop › Empty Caches.
4. Clear Chrome or Firefox cache
Chrome and Firefox each have a clear-data option in their settings. Choose only cached images and files, and leave cookies unticked, so you stay signed in to websites.
5. Clear one app's cache by hand
- Quit the app, so it doesn't rewrite its cache while you clear it.
- In the Finder, choose Go › Go to Folder, type
~/Library/Cachesand press Return. - Open the folder named after the app, often its bundle ID such as
com.spotify.client, and move what's inside to the Trash. Leave the folder itself in place. - Open the app again and check it works, then empty the Trash to get the space back.
Apple doesn't document clearing this folder by hand, so treat it as an app-by-app job, not a routine. Only clear caches for apps you recognize. If you're not sure what a folder is, look it up in Is it safe to delete app caches? first.
6. Logs and crash reports
Apps write diagnostic logs to ~/Library/Logs, and macOS saves crash reports when an app quits unexpectedly. They're usually small and safe to delete, but keep them if you're troubleshooting a problem or a developer has asked for them. See log files and crash reports.
7. Developer caches
If you write code, developer caches are often the biggest of all: Xcode DerivedData, simulator caches and the download caches of Homebrew, npm, Yarn, pip, Gradle and others can reach tens of gigabytes. They rebuild on the next build or install. See Mac developer cleanup and Is it safe to delete Xcode DerivedData?
What not to clear
- System cache folders.
/Library/Cachesand the private cache folders macOS manages are used by the system. macOS clears what it can when space runs low, and System Integrity Protection guards the rest. - Caches of an app that's running. Quit it first, or it may lose work or rewrite the cache straight away.
- Everything at once in Library. Deleting the whole
~/Library/Cachesfolder or other Library folders can sign you out of apps and slow your Mac while everything rebuilds, for little lasting gain.
Cache space also comes back over time: apps refill their caches as you use them, so clearing them is a one-off gain, not a fix for a full disk. For the space that stays, see what System Data is on Mac.
With KittoCleaner
KittoCleaner's Smart Clean measures every cache category at once, says what each one is, and clears only what you choose.
- App caches, including Safari and Chrome, Log files and Crash reports are labelled Safe. Temporary files are labelled Rebuilds later, with a warning to quit apps first. System caches for your account are labelled Check first and stay off until you turn them on; folders macOS locks are always left in place.
- Web caches for VS Code, Cursor, Slack, Discord and Microsoft Teams, the Adobe media cache and Steam's caches are listed separately, and you stay signed in.
- Developer caches, from Xcode DerivedData to Homebrew and npm, sit in their own Developer Tools tile. See Mac developer cleanup.
- Running apps that own the data are detected and can be quit before cleaning.
- With Pro, Autopilot clears the safe categories on a schedule, every day, every week or when space is low. Everything goes to the Trash first, and any run can be undone.
Caches and logs are deleted permanently because apps rebuild them, and protected macOS caches are skipped. Scanning is free; cleaning draws on the free cleaning allowance unless you have Pro or a Single Clean credit. KittoCleaner needs macOS 14 Sonoma or later.
Related
Sources
- Optimize storage space on your Mac (macOS User Guide)
- Free up storage space on Mac (Apple Support)
- Start up your Mac in safe mode (Apple Support)
- Clear your cache and cookies in Safari on Mac (Safari User Guide)
- Change Advanced settings in Safari on Mac (Safari User Guide)
- Develop menu (Apple Developer)
- About System Integrity Protection on your Mac (Apple Support)