macOS
8 MIN READHow to clean Mac storage safely: a measured method
A cautious method for finding large files, reviewing caches and downloads, and deleting only what you understand — plus what macOS already manages.
Reviewed 27 November 2026. The sources used for the factual claims are listed at the end of the guide.
In brief
- Measure before deleting: the Storage panel names the category, Finder and Terminal show the actual files.
- Caches, logs and Trash are the safest first pass; Downloads, device backups and developer data deserve review.
- Never delete ~/Library/Application Support, ~/Library/Containers, ~/Library/Keychains or anything under /System and /Library by hand.
- macOS already manages local Time Machine snapshots and purgeable space; forcing those numbers down can break recovery.
A full Mac is rarely fixed by one dramatic deletion. It is fixed by measuring where the space went, removing the copies you can rebuild, and reviewing the files you actually care about. The dangerous part is not the cleanup itself; it is deleting a folder whose purpose you inferred from its name.
This guide is written in the order that keeps you safe: measure first, clear the disposable layers, then review the expensive ones. It also explains what macOS already manages, because those are the items people most often try to force.
Nothing here requires a third-party cleaner. Finder, the Storage panel and Disk Utility are enough for most Macs. If you use a tool, use one that shows each path and size and deletes only what you tick.
Step 1 — Measure before you touch anything
Open System Settings → General → Storage. The bar gives you categories and a rough size for each. Click a category to see what macOS thinks is inside, and use Manage… for Apple’s own suggestions such as storing files in iCloud or emptying the Trash.
Two cautions about that screen:
- Categories overlap. A file can be counted under “Documents” and still appear in a folder you later inspect. The panel is a summary, not an inventory.
- “System Data” is a bucket, not a folder. It collects caches, logs, virtual memory, application support files and local Time Machine snapshots. There is no
System Datadirectory to delete.
For a second opinion, open Finder and use Go → Home, then View → Show View Options and enable Calculate all sizes. Sort by size in list view. For a terminal summary of a folder you own:
du -sh ~/Downloads/* | sort -h
Read the paths before acting. A large file in ~/Library/Application Support is usually application data, not junk.
Step 2 — Empty the Trash, then check again
This sounds trivial, and it is the most common reason “deleted” files still occupy space. Items moved to the Trash stay on the disk until the Trash is emptied. Open Trash, confirm the contents, and choose Empty. If you use iCloud Drive’s Trash or an external drive’s Trash, empty those separately.
Then close the Storage panel and reopen it. Some numbers update immediately; some, such as purgeable space, are recalculated in the background.
Step 3 — Clear the cache layer
Caches are copies that apps keep so they open faster. Deleting them costs a slower first launch and some re-downloaded data; it does not delete your documents.
| Location | What it holds | Safe first pass? |
|---|---|---|
~/Library/Caches |
Per-app caches for your user | Yes, with the app quit |
/Library/Caches |
Shared caches used by all users | Yes, if you can authenticate |
~/Library/Logs |
Diagnostic logs for your apps | Yes; old logs only |
/var/log |
System logs | Generally no; macOS rotates them |
~/Library/Application Support |
App settings, databases, plugins | No — this is data, not cache |
~/Library/Containers |
Sandboxed app data | No — sign-ins and local data live here |
~/Library/Keychains |
Passwords and certificates | Never |
The practical version: quit the app that is misbehaving, delete that app’s folder inside ~/Library/Caches, and reopen it. Do not delete the Caches folder itself, and do not empty every cache at once while apps are running.
Logs and crash reports are similarly safe, but they are usually small. If you are diagnosing a problem, read them before deleting them.
Step 4 — Review Downloads and large files
Downloads is where installers, disk images, zips, exported videos and “temporary” files accumulate. Sort by size and by date. A 6 GB .dmg for an app you already installed is a safe removal; a 6 GB recording may be the only copy.
Finder search is enough to find the outliers:
- Open Finder and choose the folder, usually Home or Downloads.
- Switch to list view and sort by Size.
- Use the search field with a filter such as Size → is greater than → 1 GB.
- Add Kind → is → Movie or Other to narrow the list.
- Show the path bar (View → Show Path Bar) so you always know where the file lives.
Delete installers first. Then review archives you have already extracted, duplicate exports, and old screen recordings.
Step 5 — Check the expensive app-specific folders
Some of the largest items are legitimate data that you may or may not still need. Move through them slowly:
| Item | Where | What to do |
|---|---|---|
| iOS and iPadOS backups | ~/Library/Application Support/MobileSync/Backup |
Review in Finder; remove old device backups you no longer need |
| Xcode build data | ~/Library/Developer/Xcode/DerivedData |
Safe to delete; Xcode rebuilds it |
| Xcode archives | ~/Library/Developer/Xcode/Archives |
Keep archives you need for App Store uploads |
| iOS device support files | ~/Library/Developer/Xcode/iOS DeviceSupport |
Old versions can be removed; they return when needed |
| Simulator devices | ~/Library/Developer/CoreSimulator/Devices |
Remove unused simulators through Xcode or xcrun simctl |
| Docker images and volumes | Docker Desktop | Use Docker’s own cleanup controls; do not delete its VM files by hand |
| Mail downloads | Mail’s own settings | Use Mail’s account and storage controls, not the container folder |
| Photos library | Photos app | Use Photos’ own tools; deleting the library in Finder can lose originals |
Developer folders are the classic example of “big and safe, but only if you know what they are”. Xcode’s DerivedData is a build cache; deleting it is normal. An Xcode archive may be the only signed build of a shipped app; deleting it is a decision, not a cleanup.
Step 6 — What macOS already manages
Three mechanisms look like waste and are usually better left alone:
- Local Time Machine snapshots. APFS snapshots let Time Machine restore an earlier state even when the backup disk is not connected. macOS thins them automatically when space is needed. You can list them with
tmutil listlocalsnapshots /; deleting them by hand gives temporary space and removes a recovery point. - Purgeable space. macOS can report free space that includes files it will evict if needed. The Storage panel may show a small free number while the system still has room to work.
- Optimised storage and offloaded files. iCloud Drive and Photos can keep originals in the cloud and placeholders on the Mac. Deleting a placeholder does not necessarily delete the cloud copy, and downloading everything back fills the disk again.
If the goal is “more free space now”, these are not the right targets. If the goal is “make the number look different”, they are the wrong targets for the wrong reason.
Step 7 — The safety rules worth taping to the screen
- Never delete
/System,/Library,/usror~/Library/Keychains. These hold the operating system, shared resources and credentials. - Treat
~/Library/Application Supportand~/Library/Containersas data. Removing them can erase sign-ins, settings and local databases. - Quit an app before deleting its cache. A running app can recreate the files immediately, or behave unpredictably.
- Move to the Trash before using
rm. A mistakenrm -rfhas no undo; the Trash does. - Change one thing at a time. If something breaks, you will know which removal caused it.
- Keep a current backup. Time Machine on an external disk is the simplest safety net; verify that the backup actually completed.
- Never run a “clean everything” command you did not write. Broad deletion scripts are how working systems become restore projects.
Step 8 — Verify and stop
Empty the Trash, restart the Mac, and reopen System Settings → General → Storage. If the number has not moved, check three things: files are still in the Trash, a local snapshot is holding the space, or an app has the deleted files open. Disk Utility’s First Aid checks the filesystem; it does not delete your data.
Then stop. A second pass through the same folders rarely finds much, and each pass adds risk without a measurement to justify it. Schedule the next cleanup by trigger, not by habit: “when free space drops below 15%” is a better rule than “every Sunday”.
If you would rather use a tool
A cleaner is a convenience layer over the same decisions. The useful test is not how much it claims to remove but whether it shows each item, its path and its size before deleting, and whether it admits what it cannot reach.
SlightClean, the macOS app this studio publishes, is deliberately narrow: it scans app caches, browser caches, developer caches in the shared caches folder, logs and crash reports, its own temporary files, the Trash and folders you add. Because it is a sandboxed Mac App Store app, it cannot read Xcode’s DerivedData and Archives, iPhone backups, Mail attachments or other apps’ containers. Those stay in the manual list above. It moves deletions to the Trash by default and deletes only the items you select.
That is a useful division of labour rather than a complete solution. If a tool promises to clean what its sandbox cannot see, treat the claim as marketing.
The short version
Measure with the Storage panel, empty the Trash, clear caches with the app quit, review Downloads and large files, then look at device backups and developer data. Leave the operating system, credentials and application support alone, and let macOS manage snapshots and purgeable space. Keep a backup, change one thing at a time, and stop when the number is good enough.
