📑 Table of Contents

  1. What Are Caches and Why Do They Exist?
  2. Types of Caches on macOS
  3. Clearing User Caches via Finder
  4. Browser Cache Clearing (Safari, Chrome, Firefox)
  5. System Caches: What Is Safe?
  6. Terminal Commands for Cache Management
  7. Built-in vs Third-Party Cache Cleaners
  8. When and How Often to Clear Caches

Every Mac maintains several layers of cached data designed to make your computer faster. When you open an app, visit a website, or load a document, macOS stores temporary copies of frequently accessed data so it can be retrieved more quickly next time. Over months and years, however, these caches can grow to consume tens of gigabytes of precious storage space. The challenge is knowing which caches are safe to remove and which ones should be left alone.

In this guide, we will explore every type of cache on your Mac, explain the difference between system caches and user caches, walk through browser-specific cache clearing for Safari, Chrome, and Firefox, and provide terminal commands for advanced cache management. No third-party tools required — just Finder and Terminal.

💡 Did You Know?

macOS automatically manages system caches and will purge them when disk space runs low. In most cases, manually clearing system caches provides no lasting benefit because macOS will immediately begin rebuilding them. Focus your cleanup efforts on user and browser caches instead.

What Are Caches and Why Do They Exist?

A cache is a temporary storage layer that holds copies of data for faster future access. When your Mac fetches data from a slow source (the internet, a large file on disk, a computation result), it stores a copy in a faster location. The next time that data is needed, the cached copy is served instantly instead of repeating the slow operation.

Caches exist at every level of your Mac:

Types of Caches on macOS

On macOS, cached data is stored in three primary locations:

User Caches: ~/Library/Caches/

This folder contains per-application caches for the current user. Each app has its own subfolder, typically named with its bundle identifier (e.g., com.apple.Safari). These caches are generally safe to delete, though the app may take longer to load the next time it launches as it rebuilds its cache.

System Caches: /Library/Caches/

System-level caches shared across all users. These support system services and should be treated more carefully. Deleting the wrong system cache can cause temporary glitches or slower performance until macOS rebuilds it.

Kernel and Boot Caches: /System/Library/Caches/

Critical system caches required for macOS to boot and operate. Never manually delete anything from this location. On modern macOS with System Integrity Protection (SIP) enabled, you physically cannot modify these files anyway.

⚠️ Warning

Never delete caches from /System/Library/Caches/. These are protected by System Integrity Protection for good reason. Tampering with them can prevent your Mac from booting.

Clearing User Caches via Finder

  1. Open Finder and press Cmd + Shift + G (Go to Folder).
  2. Type ~/Library/Caches and press Enter.
  3. You will see folders for each application. To clear a specific app's cache, open its folder and delete the contents (not the folder itself).
  4. To clear all user caches, select all folders with Cmd + A, then move to Trash.
  5. Empty the Trash to reclaim the space.
💡 Pro Tip

Before deleting caches, note the total size by selecting all items and pressing Cmd + I (Get Info). This lets you see exactly how much space you will reclaim. Common savings range from 2–15 GB depending on usage patterns.

Browser Cache Clearing

Safari

  1. Open Safari and go to Safari → Settings (or press Cmd + ,).
  2. Click the Privacy tab.
  3. Click "Manage Website Data..."
  4. Click "Remove All" to clear all cached website data.

Alternatively, enable the Develop menu (Safari → Settings → Advanced → "Show Develop menu") and use Develop → Empty Caches for a quick cache-only clear.

Google Chrome

  1. Open Chrome and press Cmd + Shift + Delete.
  2. Set the time range to "All time".
  3. Check "Cached images and files" (uncheck others if you only want caches).
  4. Click "Clear data".

Mozilla Firefox

  1. Open Firefox and press Cmd + Shift + Delete.
  2. Set the time range to "Everything".
  3. Check only "Cache" and click "Clear Now".

System Caches: What Is Safe?

System caches at /Library/Caches/ require more caution. Here is a safety guide:

Cache TypeLocationSafe to Delete?
User app caches~/Library/Caches/✅ Yes, apps rebuild them
Browser cachesVia browser settings✅ Yes, use browser tools
System shared caches/Library/Caches/⚠️ Caution — research first
Font caches/Library/Caches/com.apple.ATS/✅ Safe, restart required
Kernel caches/System/Library/Caches/❌ Never touch
DNS cacheIn memory✅ Flush via Terminal

Terminal Commands for Cache Management

View total user cache size

Terminal — User Cache Size
du -sh ~/Library/Caches/

Clear all user caches

Terminal — Clear User Caches
rm -rf ~/Library/Caches/*
⚠️ Warning

The rm -rf command permanently deletes files without moving them to Trash. Triple-check the path before running this command. Never run rm -rf / or rm -rf ~.

Flush DNS cache

Terminal — Flush DNS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Useful when websites are not loading properly or you have changed DNS servers.

Rebuild Spotlight index

Terminal — Rebuild Spotlight
sudo mdutil -E /

Forces Spotlight to rebuild its entire index. Useful when search results seem wrong or incomplete.

Built-in vs Third-Party Cache Cleaners

FeatureManual (Finder/Terminal)Third-Party Cleaner
User cache clearing✅ Full control✅ One-click
Browser caches✅ Per-browser settings✅ All browsers at once
System cache safety✅ You choose what to delete⚠️ May be too aggressive
Selective deletion✅ Full granularity❌ Usually all-or-nothing
CostFree$30–$50/year
RiskLow (with knowledge)Medium (automated)

When and How Often to Clear Caches

Remember: caches exist to make your Mac faster. Clearing them too frequently forces your Mac to rebuild them repeatedly, temporarily making things slower. The goal is balance — remove bloated caches periodically, but do not obsessively clean them daily.