How to clear caches on a Mac safely

Storage Published

All of mac tips Try NotchStar in the browser Buy for $4

Caches are files apps keep so they start faster, and clearing the inside of a single app’s cache folder is safe. Quit the app first, then clear one app at a time. Do not select everything in the Caches folder and delete it. The worst outcome of clearing a real cache is that the app is slower once while it rebuilds.

Check the size first

du -sh ~/Library/Caches
du -sh ~/Library/Logs

On the Mac used for the blog post, Caches was 43 GB, about two thirds of its Library folder, and Logs was 81 MB. Yours will differ. To see which app folders are largest:

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

Clear one app

  1. Quit the app.
  2. In Finder, choose Go, hold Option, and open Library. Open Caches.
  3. Open the folder for that app and drag its contents to the Trash.
  4. Open the app. It rebuilds what it needs.

Move to the Trash rather than deleting, so you can put it back. Wait a day, then empty the Trash.

What to leave alone

  • The top level of your Library folder. Never delete whole folders like Application Support, Preferences or Containers.
  • Anything you cannot name. Search its name first. If that does not make it clear, leave it.
  • System folders. macOS owns them.

Some apps keep state in their cache folder that is not really a cache, which is why you go one app at a time.

Other safe places from the same list

Logs are text files and safe to clear. Xcode DerivedData is safe if you build apps, and the next build is a full build. Homebrew has a dry run, brew cleanup -n, that shows what it would remove before you run it for real.

A restart helps too

Restarting the Mac empties several system caches on its own. Apple adds that starting in Safe Mode clears certain system caches and can free space for something like an update. Restart normally to leave it.

Where it fits

If the number you want to shrink is System Data, read what System Data is. NotchStar’s Disk tool scans caches, logs and Xcode build data and lets you pick what to move to the Trash.

Keep reading.

What is System Data on a Mac, and can you delete it?
System Data is the catch all in Mac Storage for files that fit no other category. What it holds, why it grows and what is safe to look at.
How to find large files on a Mac
Find the biggest files and folders on a Mac with Storage settings, Finder size sorting and two Terminal commands. Tested commands, and what not to delete.
How to empty the Trash on a Mac safely
Empty the Trash from the Dock, restore items with Put Back, delete one item, handle locked files, and set the Mac to empty it after 30 days.
Disk space, duplicates, apps and cleanup
See free space, find big folders, duplicates and app leftovers, compress media and clean caches from your Mac notch. Everything goes to the Trash.
How to find what is filling your Mac, and free space safely
Find what fills your Mac with Finder and Terminal, learn which folders are safe to clear, and what to leave alone. Commands tested, with a 20 minute routine.

More in Storage.

How to check disk space on a Mac
See how much storage is used and free on a Mac in System Settings, in Finder, and with one Terminal command. Includes why the numbers can disagree.
What is System Data on a Mac, and can you delete it?
System Data is the catch all in Mac Storage for files that fit no other category. What it holds, why it grows and what is safe to look at.
How to find large files on a Mac
Find the biggest files and folders on a Mac with Storage settings, Finder size sorting and two Terminal commands. Tested commands, and what not to delete.
How to find duplicate files on a Mac
Two files with the same name may differ, and two with different names may match. How to find true duplicates on a Mac by comparing content.
How to empty the Trash on a Mac safely
Empty the Trash from the Dock, restore items with Put Back, delete one item, handle locked files, and set the Mac to empty it after 30 days.
How to uninstall an app on a Mac and remove its leftover files
Use the app's uninstaller if it has one, otherwise move it to the Trash. Then check the Library folder for the cache, settings and data it left behind.
NotchStar app icon

Put your notch to work.

Buy it once for $4, activate it in a minute, and keep it. Not sure yet? Try every tool in the browser on the home page, or install the 7 day trial.