Home › Origin › Clear caches safely on a Mac

How to clear caches on a Mac safely

Origin's Clean Up finds the caches, build folders, package downloads and logs on your Mac that rebuild themselves, plus what removed apps left behind. It tells you what each one is and how big it is, and moves your choice to the Trash in one step. Nothing is deleted on the spot, and Command-Z puts it all back.

9.75 GB safe to clean in caches and build folders, each with what happens if you remove it. One Move to Trash, undoable.

Clean Up is in the Origin beta now. No scare scores, just what each folder is.

Join the beta

What people say about cleaners

I'm looking for better cleaner that my current one.

A Reddit comment in r/macapps (source)

the article is basically just a sales pitch for their own cleaner tool.

A Reddit comment in r/macapps (source)

People want the space back, but they do not trust tools that scare them into deleting things. Clean Up is built the other way round: it explains, it asks once, and it keeps the undo.

How to clean up in Origin

  1. Choose File, then Clean Up. Or press Storage in any folder and click "safe to clean".
  2. Clean Up opens as a page in a tab, with Safe and Check first kept apart. Click any item to read what happens if you remove it and why Origin offers it.
  3. Untick anything you want to keep, or choose Keep so it is never offered again, then press Move to Trash. One warning covers the whole run.
Origin's Clean Up page on Mac: 10.75 GB found in Studio, 9.75 GB safe to clean in DerivedData, a Rust target folder, Homebrew downloads, the npm cache and build logs, 1 GB to check first in caches of a removed app, and DerivedData explained on the right
Safe and Check first, kept apart, and what happens if you remove each one.

Why it is safe

  • Everything goes to the Trash. Nothing is deleted on the spot, and ⌘Z puts it all back.
  • Only what rebuilds, or what is left over. App caches, Xcode DerivedData, Rust target folders, node_modules, npm and Homebrew caches, logs, and caches of apps you have removed.
  • Quit first, when it matters. If the app that owns a cache is running, the warning says so, for example "Quit Xcode first."
  • Nothing skipped quietly. A folder macOS protects is listed as "Protected by macOS", not left out without a word.

What to leave alone, whatever tool you use

  • Xcode Archives. They hold your shipped builds and the symbols you need to read crash reports. They do not come back.
  • Simulators with data, which hold apps and their data. Remove them from Xcode.
  • Your whole Library folder. Advice like this is out there:

you hardly ever have to reinstall a Mac, instead just clean up all the Library folders and you're fine.

A Hacker News comment (source)

"All the Library folders" includes your mail, your app settings and your passwords. Clean Up never offers those.

The built-in way, and where it stops

You can do it by hand: in Finder press ⇧⌘G, type ~/Library/Caches, quit the app, and drag its folder to the Trash. Apple itself clears certain system caches when you start in safe mode, and they are made again as needed (Apple: Free up storage space on Mac). For Xcode, an Apple engineer puts it plainly: "You can delete DerivedData at any time. It grows back" (Apple Developer Forums). The hard part is knowing which of hundreds of folders are safe; that is the part Clean Up does for you.

One app instead of four

A renamer, a disk map, a cleaner and a better Finder are usually four apps. In Origin they are one file manager, with the same keys, the same undo and the same rule that nothing is lost.

Questions

Does Origin's Clean Up delete files for good?

No. Clean Up moves everything to the Trash, and Command-Z puts it back.

Is it safe to clear caches on a Mac?

Yes, for caches that apps make again when needed, such as app caches, Xcode DerivedData and package downloads. Quit the app first, and move the folders to the Trash rather than deleting them, so you can put them back.

Is it safe to delete Xcode DerivedData?

Yes. An Apple engineer on the Apple Developer Forums says DerivedData can be deleted at any time and grows back. Quit Xcode first.

What should I never delete to free space?

Xcode Archives, simulators that hold data, and anything an app is using right now. Archives do not come back, and you need them to read crash reports.

Does Origin replace Finder?

It works alongside Finder. Use Origin for your everyday file work; Finder stays exactly as it is, and you can drag files between the two.

Is Origin private?

Yes. Origin works entirely on your Mac. There is no account and no analytics, and your file names never leave your machine.

What does Origin cost?

The beta is free on TestFlight. Pricing is announced before launch, and beta testers hear it first.

Sources: Apple: Free up storage space on Mac · Apple Developer Forums: DerivedData and other Xcode data

Get the space back, and keep the undo

Join the Origin beta on TestFlight and clean up with every item explained and undo one keystroke away. Origin is coming soon to the Mac App Store for macOS 14 or later.

Join the beta See the Origin file explorer for Mac