Skip to content

Black Friday: 40% off. Purgy for $12 $20 with code Code , until Dec 12.

Get the deal
← Blog

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

How to clear cache on a Mac
On this page
  1. What is cache on a Mac?
  2. How much cache is on my Mac?
  3. Caches that are not in the Caches folder
  4. Is it safe to clear cache on Mac?
  5. How to clear app caches in ~/Library/Caches
  6. How to clear the browser cache on Mac
  7. How to clear Slack, Teams, Spotify and other app caches
  8. Should you clear system caches?
  9. Does clearing cache make a Mac faster?
  10. Questions about clearing cache on Mac
  11. Clear app caches in one pass with Purgy

Quick answer: Quit the app first. If it has its own clear-cache button, as Safari, Chrome, Firefox, Slack and Spotify do, use that. For other apps, open ~/Library/Caches in Finder and move the contents of that app's folder to the Trash.

Leave system caches to macOS. Clearing frees space and fixes stale pages, but it does not speed up a Mac.

Tested on: MacBook Air M1 with 16 GB of memory, macOS 27.0.1, on 23 November 2026. I measured every cache folder below with du, ls and stat, which only read. Nothing was deleted. Browser and app steps come from Apple, Google, Mozilla, Slack, Microsoft, Spotify and Telegram, each named where it is used.

What is cache on a Mac?

Think of a cache as a copy an app keeps so it does not have to fetch or rebuild the same thing twice: page images, album art, map tiles, compiled code. Apple's developer documentation describes the Caches folder as data that "can be regenerated as needed", and says apps should never rely on those files being there.

That is why app caches are safe to remove. On a Mac they sit in three places, and only the first is the one most guides mention:

  • Your own Caches folder, ~/Library/Caches. Each app gets a subfolder, usually named after the app or its bundle identifier, such as com.apple.helpd.
  • Inside an app's own data folder. Browsers and apps built on web technology keep folders called Cache, Code Cache and GPUCache in ~/Library/Application Support. App Store apps keep theirs inside ~/Library/Containers.
  • System caches, in /Library/Caches and in folders macOS manages itself. These belong to macOS, not to you.

How much cache is on my Mac?

This Terminal command lists the ten biggest folders in your Caches folder. It only reads sizes and changes nothing:

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

Here is what it showed on my MacBook Air, which has been in daily use with Chrome, Homebrew and a few chat apps:

Folder in ~/Library/CachesSize on my Mac
Whole folder (70 subfolders, 62,907 files)2.9 GB
Google/Chrome, three Chrome profiles2.8 GB
Chrome, Profile 11990 MB
Chrome, Profile 17990 MB
Chrome, Profile 14895 MB
GeoServices (an Apple service)50 MB
Homebrew39 MB
com.apple.helpd26 MB
The other 66 folders together20 MB
Safari and 7 other Apple foldersNot measured: macOS blocked access

One app, Chrome, held about 95% of everything my command could read. Each Chrome profile keeps its own cache, so three profiles meant three caches of close to 1 GB each. The rest of the folder was small change.

The du manual page says -h counts in units of 1,024. Apple says only OS X Leopard and earlier reported storage that way, so Finder on a current Mac shows these folders a little larger than du does.

Caches that are not in the Caches folder

Clearing ~/Library/Caches misses a lot of cache on most Macs. Apps built like a browser keep theirs next to your sign-in data instead. The Claude desktop app on my Mac is one example: its Cache folder in Application Support held 111 MB and its Code Cache another 16 MB.

Some of these folders are walled off. When I tried to measure Chrome's profile folder, Brave's profile folder, Slack's App Store container and WhatsApp's group containers, macOS answered "Operation not permitted" for each. Without Full Disk Access, a command cannot even read them, which is a good sign you should not be clearing them by hand.

Is it safe to clear cache on Mac?

For app caches, yes. Apple tells developers to treat cache files as disposable, so a well-made app rebuilds whatever it needs. The cost is a slower first load while it does. A few rules keep it safe:

  1. Quit the app first. An app that is running can be writing to its cache. On my Mac, Chrome was writing new files to its cache while I measured it.
  2. Empty one app's folder, not the whole Library. Remove what is inside a named app folder in ~/Library/Caches. Leave Application Support, Containers and Group Containers alone unless the app's own maker tells you otherwise.
  3. Know what is not cache. Cookies keep you signed in, and downloads are your files. Spotify, for one, treats its cache and your downloaded tracks as separate things, each removed in its own way.
  4. Do not clear a cache to fix lost data. Microsoft warns that clearing the Teams cache does not bring back missing messages, and that it deletes the logs support needs to find the cause.

How to clear app caches in ~/Library/Caches

This is the manual method for apps that have no clear-cache option of their own. It uses only Finder.

  1. Quit the app whose cache you want to clear.
  2. In Finder, choose Go > Go to Folder, or press Shift-Command-G.
  3. Type ~/Library/Caches and press Return.
  4. Open the folder named after the app. Switch to list view and turn on sizes if you want to see which is biggest.
  5. Select the items inside that folder and move them to the Trash.
  6. Open the app again and check that it works. Then empty the Trash to get the space back.

Using the Trash rather than rm in Terminal gives you a way back if an app misbehaves afterwards. If a folder name means nothing to you, look it up before you touch it.

How to clear the browser cache on Mac

Browsers have a built-in command for this, and it is the better route: it clears only the cache and leaves cookies, history and passwords unless you tick them too.

Safari

Safari hides its cache command in the Develop menu. To show that menu, Apple's Safari guide says to open Safari > Settings, go to the Advanced tab and turn on Show features for web developers.

Then choose Develop > Empty Caches, which Apple's developer documentation lists in that menu. Safari's own text files on my Mac also include an Empty Caches for All Profiles command.

Two other Safari options delete more than the cache. Safari > Settings > Privacy > Manage Website Data removes stored site data, which Apple warns may sign you out of websites. History > Clear History removes your browsing history, on every device that syncs Safari through iCloud. Apple notes it does not remove downloaded files.

Google Chrome

Google's help page gives the path: click the three-dot More menu at the top right and choose Delete browsing data. Google's shortcuts page lists Command-Shift-Delete to open the same window. Pick a time range, such as All time.

Then tick Cached images and files, the label in Chrome 157 on my Mac, and untick Cookies and other site data if you want to stay signed in. Google says clearing cookies signs you out of sites, and that some sites can seem slower afterwards while images load again. Click Delete data.

Each Chrome profile has its own cache folder, as my table shows. If you use several profiles, check the cache in each one.

Firefox

Mozilla's support article gives these steps. Firefox is not installed on my Mac, so this part is not tested here.

  1. Choose Firefox > Settings from the menu bar.
  2. Open the Privacy and security panel.
  3. In Browsing data, click Clear browsing data.
  4. Set When to Everything, tick only Temporary cached files and pages, and click Delete.

How to clear Slack, Teams, Spotify and other app caches

The apps people ask about most each have their own method. Use it rather than digging into their folders, because their caches sit next to data that keeps you signed in.

AppHow to clear its cacheSourceTested here?
SlackHelp > Troubleshooting > Clear cache and restartSlack help: Troubleshoot connection issuesInstalled (App Store version), but its data folders were blocked to my command line
Microsoft Teams (new)Quit Teams, then delete ~/Library/Group Containers/UBF8T346G9.com.microsoft.teams and ~/Library/Containers/com.microsoft.teams2, and restart TeamsMicrosoft Learn: Clear the Teams client cacheNot tested here: Teams is not installed
SpotifyProfile picture > Settings > Storage > Clear cacheSpotify support: Storage informationNot tested here: Spotify is not installed
TelegramSettings > Data and Storage > Storage Usage > Clear cacheTelegram FAQNot tested here: Telegram is not installed

A few points from those vendors are worth knowing before you click. Microsoft says the first start after clearing the Teams cache can be slower while it rebuilds.

Spotify sets a cache limit by default and trims to it itself, and warns that a smaller limit can affect playback and use more data. Telegram says clearing its cache frees space without logging you out.

Microsoft's Mac steps delete both Teams folders entirely, not just a cache folder inside them. For a full Teams walkthrough, see how to clear the Microsoft Teams cache. If you want Spotify gone altogether, see how to uninstall Spotify on Mac.

WhatsApp is installed on my Mac with four folders in Group Containers, and macOS would not let me read any of them. I found no cache-only option from WhatsApp that I could confirm, so I would only delete media from inside the app.

Should you clear system caches?

No. System caches belong to macOS, and Apple gives one supported way to clear them. In its guide to freeing storage space, Apple says that starting up in safe mode makes the Mac clear certain system caches, which are rebuilt as needed. Restart normally to leave safe mode.

Apple presents this as a way to get space temporarily, for example to finish a macOS update. It is not routine maintenance. On my Mac, the parts of /Library/Caches my account could read held almost nothing, and macOS refused access to the rest. Forcing your way in with sudo risks more than it gains.

If System Data in Storage settings is what looks big, caches are only one part of it. What System Data is on a Mac breaks down the rest.

Does clearing cache make a Mac faster?

Usually not. A cache exists to save time, so removing it makes the next launch or page load slower while the app rebuilds it. Google says as much for Chrome, and Spotify for its player.

The space also comes back only for a while. Chrome was adding to its cache while I measured it, and apps refill theirs as you use them. A cache you clear today will often be close to its old size within weeks.

Clearing does help in three cases: a site or app shows stale or broken content, an app's cache is damaged and it will not start properly, or your disk is nearly full and you need room now. If the Mac feels slow, memory is the more likely cause. How to clear RAM on Mac shows how to check.

Questions about clearing cache on Mac

These are the ones that come up most.

Is it safe to delete everything in ~/Library/Caches?

Apple tells apps not to depend on anything in it, so emptying it will not lose your documents. I would still clear one app at a time, with that app quit, rather than everything at once while apps are running. For more on that folder, see whether ~/Library/Caches is safe to delete.

Will clearing the cache delete my passwords or bookmarks?

No. In Safari, Chrome and Firefox the cache is a separate option from passwords, history and cookies. Tick only the cache and the rest stays.

Will I be signed out of websites?

Only if you also clear cookies or site data. Google and Apple both warn that removing site data can sign you out. The cache on its own does not.

Why did my cache come back?

Because apps rebuild it as you use them. That is normal and is the reason clearing a cache on a schedule gains little.

Should I use Terminal to delete caches?

You can, but Finder and the Trash give you a way back. A mistyped rm command deletes straight away, with no Trash to recover from.

How often should I clear cache on a Mac?

Only when you need to: a page or app misbehaves, or the disk is nearly full. On my Mac a single browser was the whole story, so it is worth measuring first, as above.

Clear app caches in one pass with Purgy

Purgy groups caches under System caches: the app folders in ~/Library/Caches, the cache folders that browsers and chat apps keep in Application Support, and the caches of App Store apps inside Containers. Each app shows as one row with its size, marked safe, and Clean now clears them together.

Caches are deleted permanently, because the apps rebuild them, while anything that is a user file goes to the Trash. Purgy touches only the cache folders and leaves the rest of each app's folder alone. Group Containers, where apps share data between their parts, is locked and never cleaned. For Safari, cookies and history, use the browser's own settings above.

For more ways to get space back, see how to free up space on Mac and how to find large files. To see what your own Mac is caching, start the free trial.