# How to clear cache on a Mac: app, browser and system caches

Guide · Updated 21 November 2026. By Mohit Nippanikar, who makes SiftMac.

## The short answer

- **Quit the app, then empty its cache folder.** App caches live in `~/Library/Caches`, one folder per app. Browsers clear their own from a menu, and macOS looks after the system’s; a restart or safe mode refreshes those.
- **What it costs you:** nothing you made. Apps rebuild what they need, so the first launch afterwards is a little slower, and sites load more slowly once.
- **Does it come back?** Yes, as you use your apps. Clearing a cache buys space for a while, or fixes one app that misbehaves. It doesn’t speed up a Mac.

## 1. Three kinds of cache, three places to clear them

A cache is a copy an app or macOS saved so it doesn’t have to fetch or work it out again: thumbnails, web pages, compiled code, map tiles, song previews. Because they’re copies, deleting them loses nothing you made. Each kind is cleared in its own place:

| Cache | Where it is | How to clear it |
| --- | --- | --- |
| App caches | `~/Library/Caches`, one folder per app, plus a few apps’ own folders | With the app quit, empty its folder ([steps](#app-caches)) |
| Browser caches | Inside each browser’s data | The browser’s own command, which keeps your logins ([steps](#browsers)) |
| System caches | `/Library/Caches`, `/System/Library/Caches`, `/private/var/folders` | Leave them to macOS; a restart or safe mode refreshes them ([how](#system)) |

macOS also trims caches by itself. Apple’s guide to optimizing storage says that when space is needed, macOS clears caches and logs that are safe to delete, so on a nearly full disk some of this is already happening for you.

## 2. Find the big ones first

Most cache folders are small. A handful, usually browsers, music and video apps, chat apps and developer tools, hold gigabytes. This lists the 20 biggest, biggest last. If Terminal says “Operation not permitted”, turn it on in System Settings › Privacy & Security › Full Disk Access first:

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

Folders are named after the app or its ID: `com.spotify.client` is Spotify, and `com.todesktop.230313mzl4w4u92.ShipIt` is [Cursor’s update cache](https://siftmac.com/safe-to-delete/cursor-update-cache). If a name means nothing to you, [look it up](https://siftmac.com/check) before you delete anything in it.

Some apps keep their cache somewhere else, so look here too:

- **App Store apps**, and other sandboxed apps, keep theirs inside their own container: `~/Library/Containers/<app ID>/Data/Library/Caches`.
- **Apps built on Electron**, such as Slack, Discord and VS Code, keep folders named `Cache`, `Code Cache` and `GPUCache` inside `~/Library/Application Support/<app name>`. Those can go with the app quit; the rest of that folder is the app’s data. More on [Slack](https://siftmac.com/safe-to-delete/slack-cache), [Discord](https://siftmac.com/safe-to-delete/discord-cache) and [VS Code](https://siftmac.com/safe-to-delete/vs-code-cache).
- **Command-line tools** keep theirs in your home folder, in `~/.npm` or `~/.cache`, or in `~/Library/Caches/Homebrew`. Clear those with each tool’s own command, as in [the developer files guide](https://siftmac.com/guides/developer-files-on-mac). Note that `~/.cache` also holds [Hugging Face models](https://siftmac.com/safe-to-delete/hugging-face-cache), which are downloads you may want to keep.

## 3. Clear one app’s cache

1. Quit the app with **⌘Q**. If it has a menu bar icon, quit it from there too, so nothing is writing to the folder.
2. In Finder, choose **Go › Go to Folder** (⇧⌘G), type `~/Library/Caches` and press Return.
3. Open the app’s folder, select everything inside it (**⌘A**) and move it to the Trash. Leave the folder itself where it is.
4. Empty the Trash and open the app again. It rebuilds what it needs as you use it.

Or in Terminal, with the app quit. This clears what’s inside Spotify’s cache folder, for example:

```
rm -rf ~/Library/Caches/com.spotify.client/*
```

Go app by app rather than emptying the whole Caches folder at once. Apps that are running keep writing to their folders and can act up until they restart, and macOS’s own folders there, the ones starting with `com.apple.`, are often guarded by the system and buy little when cleared.

## 4. Clear a browser’s cache

Browsers usually hold the biggest caches on a Mac. Clear them from inside the browser: that removes the cache only, and keeps your passwords, history and logins unless you tick those too.

### Safari

1. Choose **Safari › Settings**, click **Advanced**, and turn on **Show features for web developers**. Older versions call it “Show Develop menu in menu bar”.
2. Choose **Develop › Empty Caches**. Apple describes it as emptying the network cache and other Safari caches.

**Safari › Settings › Privacy › Manage Website Data** goes further: it removes cookies and what each site stored. Apple notes that this may sign you out of websites or change how they behave. More in [Safari’s cache, explained](https://siftmac.com/safe-to-delete/safari-cache).

### Chrome

Click **⋮** at the top right, then **Delete browsing data**. Choose a time range such as All time, tick only **Cached images and files**, and click **Delete data**. Leave cookies unticked to stay signed in. [Chrome’s cache folders](https://siftmac.com/safe-to-delete/chrome-cache).

### Firefox

Choose **Firefox › Settings › Privacy & Security**, and under **Cookies and Site Data** click **Clear Data**. Tick only the cache option, “Temporary cached files and pages” in current versions, and click **Clear**. [Firefox’s cache](https://siftmac.com/safe-to-delete/firefox-cache).

Afterwards, sites load a little slower the first time while the browser saves them again.

## 5. System caches: let macOS refresh them

The caches in `/Library/Caches`, `/System/Library/Caches` and `/private/var/folders` belong to macOS and to every account on the Mac. Don’t delete them by hand: some are protected, some are in use by processes you can’t see, and removing them can confuse running apps until you restart. Two safe ways to refresh them instead:

- **Restart.** It clears swap files and many temporary files, and apps rebuild what they need as they open.
- **Start up in safe mode once.** Apple says safe mode clears some system caches, including font caches and the kernel cache, which are created again as needed, and that this can make more space available for a while. On a Mac with Apple silicon, shut down, press and hold the power button until the startup options appear, select your startup disk, then hold Shift and click **Continue in Safe Mode**. On an Intel Mac, restart and hold Shift until the login window appears. Then restart normally.

If one system folder keeps growing, such as a log that never stops or a Spotlight index that balloons, fix the cause rather than deleting the folder: [the System Data guide](https://siftmac.com/guides/system-data-on-mac) covers the usual ones.

## 6. What happens after you clear a cache

- The app opens and works as before. It may start slower and show blank thumbnails or previews for a moment while it rebuilds them.
- Nothing you made is lost. Documents, settings, passwords and logins are kept elsewhere. Clearing a browser’s cookies, unlike its cache, does sign you out of sites.
- The space comes back, then fills again as you use the app. That’s expected; clearing again later is fine.
- The Mac isn’t faster. Caches exist to save time, so the first hours after clearing are, if anything, a little slower.

So clear a cache when you need space in a hurry, or when one app shows stale or broken content. There’s no need to do it on a schedule.

## Questions

### Can I delete the whole Caches folder at once?

Better not. Empty each app’s folder with that app quit, and leave `~/Library/Caches` itself in place. Wiping everything while apps run can make them misbehave until they restart, and macOS’s own folders there refill or are protected anyway.

### Will clearing the cache delete my passwords or log me out?

Not an app cache: passwords are in your keychain and settings are in Preferences. In a browser, clearing only the cache keeps you signed in; clearing cookies or website data signs you out of sites.

### How often should I clear the cache on my MacBook?

Only when you need the space or an app misbehaves. macOS clears caches by itself when space is needed, and apps rebuild theirs within days of normal use, so clearing on a schedule gains little.

### What’s the difference between cache and cookies?

The cache holds copies of what a site or app loaded, like images and scripts, so it can show them faster next time. Cookies are small notes a site leaves to remember you, such as your login. Clearing the cache is harmless; clearing cookies signs you out.

## How SiftMac handles it

Its App caches category lists each folder in `~/Library/Caches` with its size and clears what’s inside, never the folder itself. Caches of open apps are skipped and checked again right before cleaning, macOS’s own (Safari’s included) are left to macOS, and caches are deleted straight away since they rebuild. It also clears logs older than a week, and Quick clean in the menu bar clears app caches only.

Download: https://siftmac.com/SiftMac.dmg (scanning is free, and so is the first 2 GB of cleaning).

## Sources

- [Apple: Optimize storage space on your Mac](https://support.apple.com/guide/mac-help/optimize-storage-space-sysp4ee93ca4/mac)
- [Apple: Start up your Mac in safe mode](https://support.apple.com/en-us/116946)
- [Apple: Clear your cache and cookies in Safari on Mac](https://support.apple.com/guide/safari/manage-cookies-sfri11471/mac)
- [Apple: Use the developer tools in the Develop menu in Safari on Mac](https://support.apple.com/guide/safari/use-the-developer-tools-in-the-develop-menu-sfri20948/mac)
- [Google: Clear cache and cookies in Chrome](https://support.google.com/accounts/answer/32050)
- [Mozilla: How to clear the Firefox cache](https://support.mozilla.org/en-US/kb/how-clear-firefox-cache)

## Related

- [Is it safe to delete ~/Library/Caches on a Mac?](https://siftmac.com/safe-to-delete/library-caches)
- [Is it safe to clear Safari’s cache and website data on a Mac?](https://siftmac.com/safe-to-delete/safari-cache)
- [Is it safe to delete Google Chrome’s cache on a Mac?](https://siftmac.com/safe-to-delete/chrome-cache)
- [Is it safe to delete? Plain answers for 40 Mac folders](https://siftmac.com/guides/safe-to-delete-mac)
- [How to clear System Data on a Mac, safely](https://siftmac.com/guides/system-data-on-mac)
- [Quick clean from the menu bar](https://siftmac.com/features/menu-bar-quick-clean)

Canonical: https://siftmac.com/guides/how-to-clear-cache-on-mac
