Skip to content
86% off$349 $48.86code BF2026

Guides

How to Clear Cache on Mac Safely: Browser, App and System

Clear browser, app and user caches on a Mac without breaking anything: which caches are safe to delete, which to leave, and how to get the space back.

GuideUpdated 9 min read

On this page

To clear cache on a Mac safely, quit the app first. Then press ⇧⌘G (Command-Shift-G) in Finder, go to ~/Library/Caches, move that app's folder to the Trash, and empty the Trash. For a browser, use the browser's own clear option instead (in Chrome, ⇧⌘⌫ opens it). Leave Apple's com.apple.* cache folders and the system-wide /Library/Caches alone.

Caches are files apps save so they don't have to download or compute the same thing twice. Deleting them is usually safe because apps rebuild them. That also means the space is only free until the app fills the cache again, and clearing caches rarely makes a Mac faster.

Which cache you mean: browser, app or system

People say "clear the cache" about three different things:

CacheWhere it livesSafe to clear?Best way
Browser cacheInside each browser's dataYesThe browser's own clear option
App and user caches~/Library/Caches (your home folder)Mostly, with a few exceptionsFinder by hand, or a cleaner that knows the exceptions
System caches/Library/Caches and /SystemLeave alonemacOS manages these itself

If a website looks broken or out of date, you want the browser cache. If you're short on disk space, you want the app and user caches. System caches are almost never the right target.

Clear the Safari, Chrome and Firefox caches

Clear only the cache, not cookies, if you want to stay signed in to websites. Browser menu labels change between versions, so if a label below doesn't match, look for the option that mentions cached files.

Safari

  1. Choose Safari ▸ Settings (⌘,, Command-Comma).
  2. Click Advanced.
  3. Turn on Show features for web developers (in older Safari versions: Show Develop menu in menu bar).
  4. Choose Develop ▸ Empty Caches, or press ⌥⌘E (Option-Command-E).

History ▸ Clear History… also works, but it removes your history, cookies and website data too, so you'll be signed out of sites.

Chrome

  1. Click the three-dot menu at the top right, then Delete browsing data… (called Clear browsing data… in older versions). You can also press ⇧⌘⌫ (Command-Shift-Delete).
  2. Set the time range to All time.
  3. Tick only Cached images and files.
  4. Click Delete data (Clear data in older versions).

Firefox

  1. Choose Firefox ▸ Settings.
  2. Click Privacy & Security.
  3. Under Cookies and Site Data, click Clear Data….
  4. Tick only the cache option (Temporary cached files and pages in recent versions, Cached Web Content in older ones).
  5. Click Clear.

Clear cache on Mac by hand in ~/Library/Caches

This is the built-in way to clear app caches, and it costs nothing.

  1. Quit the app whose cache you want to clear.
  2. In Finder, choose Go ▸ Go to Folder… (⇧⌘G).
  3. Type ~/Library/Caches and press Return.
  4. Find the app's folder. Most are named after the app or its bundle ID, such as com.company.appname.
  5. Drag that folder (or the items inside it) to the Trash.
  6. Empty the Trash once you're sure the app still works.

A few rules keep this safe:

  • Move items inside Caches, never the Caches folder itself.
  • Skip folders that start with com.apple. Those belong to macOS and Apple's apps (see the next section).
  • Use the Trash, not Terminal. Some guides suggest rm -rf ~/Library/Caches/*. That deletes immediately with no undo, and one typo in the path can delete far more than caches. The Trash gives you a way back if an app starts misbehaving.

To see which caches are biggest before you delete anything, this read-only command lists each item in your user caches by size, smallest to largest:

bash
du -sh ~/Library/Caches/* 2>/dev/null | sort -h

It changes nothing, so there's nothing to undo. The 2>/dev/null part hides "Operation not permitted" lines for folders macOS protects.

Caches to leave alone: Apple system caches and caches that hold data

Not everything in a folder called "Caches" is disposable.

Apple system caches. The com.apple.* folders in ~/Library/Caches are used by macOS services. Many can't be moved, and trashing some makes iCloud sync again. The system-wide /Library/Caches folder sits outside your home folder and serves macOS and every user on the Mac. Leave both to macOS.

Caches that hold real data. Some apps keep things in their cache folder that you'd have to download or rebuild, such as offline music or an app update waiting to install. Gigabroom keeps a list of these and never selects them automatically. As of November 2026 it includes:

  • Spotify (its Data and Storage folders), Apple Music, Podcasts, TIDAL, Deezer, Audible
  • Plex Media Server, Steam
  • JetBrains, Adobe
  • Visual Studio Code's com.microsoft.VSCode.ShipIt (a pending update)

If you clear one of these by hand, be ready for the app to download that content again.

Why you should quit apps before clearing their caches

A running app has its cache files open. If you move them out from under it, the app can keep writing to them, so you free less than you expect. Some apps also behave oddly until they're restarted. Quit the app, clear the cache, then reopen it.

Gigabroom skips the caches of running apps and labels them "App is open". If you want those cleared too, Quit & Clean… asks the apps to quit (you can save first), moves their caches to the Trash with the rest, and reopens them afterwards. Apps get up to 10 seconds to quit gracefully, and Gigabroom never force-quits anything.

Clear caches with Gigabroom Quick Clean or Smart Scan

Clearing caches by hand is fine for one or two apps. A dedicated app helps when you want to clear many at once without checking every folder name against a list of exceptions. Gigabroom, our disk cleaner, moves everything to the Trash after a confirmation that shows the size, and re-checks each item right before it moves.

Quick Clean: pick what to clear

  1. Open Gigabroom and choose Quick Clean in the sidebar (⌘2, Command-2).
  2. Review the rows. User Caches (the items in ~/Library/Caches) is checked when it isn't empty. Xcode DerivedData, Simulator Caches and User Logs are checked too.
  3. Click a row's chevron to see the items in it, with the owning app's icon and name.
  4. Untick any row you want to leave out. To hide a single item from future scans, right-click it and choose Don't Suggest Again.
  5. Click Move to Trash… and confirm.
Quick Clean with User Caches expanded: app caches, a Tidy Mail is open item, a Keeps data item and the Apple system caches line
Caches of open apps and caches that hold data are left out.

Inside User Caches, Apple system caches are listed separately under "Apple system caches" and start unchecked. Caches from the data-holding list above show "Keeps data" and are never selected. Caches of running apps show "App is open" and are skipped. Quick Clean can also list Old Crash Reports (older than 30 days) and installers for apps you already have. The Quick Clean docs cover every row.

Smart Scan: one button for the safe stuff

The green Smart Scan button (in the sidebar and on the start screen) measures caches, logs and build products that come back on their own and queues them in the Collector. It only takes items rated Safe or Regenerates: user caches (without Apple system caches), Xcode DerivedData, simulator caches, user logs, and package-manager caches such as Homebrew, npm, Yarn, pip, CocoaPods, Gradle, Cargo and Go.

It never queues Apple system caches, caches of running apps, caches that hold data, your Downloads or duplicates. A confirm sheet shows "You will free X" and the full list, where you can drop any item with Leave This One. Nothing moves until you click Move to Trash (X). The Smart Scan docs list everything it includes.

If you're a developer, Xcode is often the biggest cache on the disk. Our guide to clearing Xcode cache and DerivedData covers it in detail.

Gigabroom is part of MacSuite and needs macOS 14 or later; you can try it free for 7 days.

Compare the methods

MethodWhat it clearsWhat it protects you fromGetting files back
Browser's clear optionThat browser's cacheLosing cookies, if you leave them untickedNot needed; the cache rebuilds
Finder by handWhatever you dragNothing; you check names yourselfPut Back from the Trash until you empty it
Gigabroom Quick CleanUser caches, logs, Xcode and simulator caches, chosen per rowApple system caches start unchecked; data-holding caches and running apps are skippedUndo Sweep (⌘Z) or Put Back
Gigabroom Smart ScanSafe and Regenerates caches, logs and build products in known locationsNever takes Apple system caches, data-holding caches, running apps' caches or items you hidUndo Sweep (⌘Z) or Put Back

Empty the Trash, and expect caches to grow back

Moving caches to the Trash frees nothing yet. The space comes back when you empty it, and emptying is permanent either way:

  • In Finder: Finder ▸ Empty Trash… (⇧⌘⌫).
  • In Gigabroom: File ▸ Empty Trash… (⇧⌘⌫). It asks first, then reports the change in free space it measured on disk. It needs Full Disk Access to see inside your home Trash; without it, the confirmation says your home Trash isn't included.

Until you empty the Trash, you can undo. In Gigabroom, Edit ▸ Undo Sweep (⌘Z, Command-Z) puts the last sweep back where it was.

If free space barely changes after emptying, macOS may keep a copy of the deleted files in a local snapshot for a while. Our guides to storage not going down after deleting files and purgeable space explain what to do.

Caches start refilling as soon as you use the app again: browser caches as you visit sites, build caches on your next build. That's normal. Clearing caches buys temporary room. For lasting space, find what's actually large; our guide to freeing up space on a Mac covers that.

Does clearing cache speed up a Mac?

Usually not. Caches exist to make things faster, so right after you clear them, apps and websites load a little slower while they rebuild.

It helps in two cases:

  • One app misbehaves. A damaged cache can cause odd behavior in a single app. Clearing that app's cache (with the app quit) is a reasonable fix to try.
  • The disk is nearly full. macOS needs free space to work normally. Clearing caches can give you room in a pinch, but find the real space users afterwards.

Gigabroom has no RAM-freeing or "speed up" tools. It frees disk space, and only once you empty the Trash.

If it doesn't work

  • The cache folder is back right away. The app was still running, or reopened. Quit it fully and clear again. A cache coming back later is normal.
  • Free space didn't go up. The files are still in the Trash, or a local snapshot is holding them. Empty the Trash, then see how to clear System Data.
  • "Operation not permitted," or the item won't move. macOS protects it or it belongs to the system, usually an Apple cache. Leave it.
  • You can't find the Library folder. Finder hides it. Use Go ▸ Go to Folder… (⇧⌘G) and type ~/Library/Caches.
  • An app lost downloads or acts strangely after clearing. You probably removed a cache that held data. Open the Trash, select the folder and choose File ▸ Put Back, or use Undo Sweep (⌘Z) in Gigabroom.
  • Gigabroom skips some caches. They belong to running apps ("App is open") or hold data ("Keeps data"). Use Quit & Clean… for the first kind. Leave the second unless you're fine downloading that content again.

FAQ

Is it safe to delete cache files on a Mac? Deleting app caches in ~/Library/Caches is generally safe if the app is quit first, because apps rebuild them. The exceptions are Apple's com.apple.* caches and the few apps that store real data in their cache folder.

Will clearing the cache sign me out of websites? Clearing only the browser cache generally doesn't. Clearing cookies or website data does, which is why Safari's Clear History… signs you out.

How often should I clear the cache? There's no need to do it on a schedule. Clear a browser cache when a site looks wrong, an app's cache when that app misbehaves, and caches in bulk when you need disk space.

Can I just delete the whole ~/Library/Caches folder? Don't. Move the items inside it, skip the com.apple.* folders, and keep the folder itself.

Every app.
One purchase.