Mantravali / Junkless / Guide

How to Clear Cache on Mac Without Breaking Anything

By Singhtech Pioneers · 1 December 2026 · 6 min read

Clearing the cache is one of the most common tips for a slow or full Mac. Done carefully, it is safe: caches are temporary copies that apps rebuild when they need them. Done carelessly, by deleting whole folders or running commands from the internet, it can sign you out of everything or worse. This guide shows the safe way, one cache at a time, and explains when clearing cache is not the answer.

What caches are

A cache is a store of data an app keeps so it doesn't have to fetch or work it out again: web page images, thumbnails, downloaded artwork, map tiles, previews of files. Caches make apps faster. When a cache is removed, the app simply builds a new one, so the next launch or page load may be a little slower.

Two things follow from that. First, clearing a cache rarely loses anything you made yourself. Second, the space often comes back, because the app fills its cache again as you use it. Clearing cache is a good fix for a cache that has grown far too large or become corrupted, not a way to gain space for good.

Measure before you clear

Find out whether caches are worth your time. Open Terminal, from Applications then Utilities, and run this command. It only reads and does not change anything:

du -sh ~/Library/Caches

If the answer is a few hundred megabytes, clearing it will make little difference. If it is many gigabytes, look inside to see which app is responsible before touching anything.

Clear browser caches

Browsers have their own controls for this, and they are the safest way to clear browser data. Use them rather than deleting browser folders by hand.

Safari

  1. Open Safari, then choose Safari, then Settings.
  2. Click Privacy, then Manage Website Data.
  3. Select the sites you want to clear and click Remove, or click Remove All.

Be aware that this removes cookies and stored site data as well as cached files, so you will be signed out of those websites. If you only want to clear cached files, Safari's Develop menu has an Empty Caches command. To show the Develop menu, open Safari, Settings, Advanced, and turn on the option for web developers. Depending on your Safari version, it is called "Show features for web developers" or "Show Develop menu in menu bar". Then choose Develop, then Empty Caches.

Chrome

  1. Open Chrome, then choose Chrome, then Delete Browsing Data. You can also find it in Chrome's settings under Privacy and security.
  2. Choose a time range.
  3. Tick Cached images and files. Untick cookies and browsing history if you want to stay signed in and keep your history.
  4. Click Delete data.

Other browsers have similar options in their own settings, usually under privacy.

Clear one app's cache

Many apps keep their caches in your user Library. Clear them one app at a time.

  1. Quit the app. Clearing a cache while the app is using it can confuse the app or leave it half rebuilt.
  2. In Finder, choose Go, then Go to Folder, enter ~/Library/Caches and press Return.
  3. Switch to list view (View, then as List) and turn on folder sizes if you like (View, Show View Options, Calculate all sizes), so you can see which folders are large.
  4. Find the folder for the app you quit. Folder names are often in a reversed web-address style, such as com.company.appname.
  5. Open that folder and move its contents to the Trash. Leave the folder itself, and every other app's folder, in place.
  6. Open the app and check it works as expected. If it does, you can empty the Trash later. If anything is wrong, put the items back from the Trash with Put Back.

Some apps also have their own "clear cache" button in their settings. Where one exists, use it instead, as the app knows best what is safe to remove.

What about the DNS cache?

You may see advice to "flush the DNS cache". The DNS cache stores recent website address lookups. Flushing it can help when a website won't load after it has moved, but it frees essentially no disk space. For storage purposes, it is optional and rarely needed, so you can skip it.

Before moving anything out of your Library, make sure you have a current backup, such as Time Machine. If you can't say what a folder is for, leave it.

What to leave alone

  • The whole Caches folder. Don't move ~/Library/Caches itself, or everything inside it at once. Clear one app at a time.
  • System caches. Caches in /Library/Caches, /System and areas such as /private/var are managed by macOS. Leave them to the system; a restart is the safe way to tidy temporary files.
  • Caches of apps that are running. Quit first.
  • Other Library folders. Application Support, Containers, Preferences and Mail hold real data, such as documents, settings and email, not caches.
  • Your Photos library, Mail and Messages. Manage these from inside their own apps.
  • iCloud Drive and keychain files. Removing them can cause data loss or sign-in problems.
  • Terminal commands that delete. Commands with rm skip the Trash, so a typo is permanent. Use Finder and the Trash instead.

When clearing cache won't help

If your caches are small, clearing them will not fix a full disk. The space is somewhere else: large files, apps, old iPhone backups, or the System Data category. Our guides How to Free Up Space on Mac and What Is 'System Data' on Mac cover those.

Clearing cache also won't speed up a Mac that is short of memory or running an app that misbehaves. A restart, a macOS update, or checking Activity Monitor for an app using a lot of CPU or memory is more likely to help. And if one app keeps rebuilding a huge cache, check its settings for a cache size limit, or look for an update.

Junkless app icon

Junkless is a Mac App Store app for macOS 13 or later. Its Smart Scan looks through the Home folder you choose for caches, old logs, interrupted downloads and old iOS backups, and explains each finding in plain language. Everything it removes goes to the Trash, so you can restore it, and it refuses iCloud Drive, Keychains, Mail, Messages, Photos libraries and data of running apps. No account, no analytics. Scanning is free, and so is the first 1 GB you remove.

Download on the Mac App Store