June 2026 · Mac Storage Guide

How to Free Up Disk Space on Mac in 2026

Your Mac is full and you're not entirely sure why. Here's where all that space actually went, and how to get it back without nuking anything important.

7 methods covered·Developer caches included·10 min read

Apple gives you a pretty bar chart under About This Mac → Storage that tells you exactly nothing useful. "System Data: 47 GB." Thanks, very helpful. You know you have 47 GB of mystery, and you still don't know what to delete.

This guide skips the obvious advice ("empty your Trash!") and focuses on where space actually disappears on a real Mac in 2026. That's especially true for developers, creatives, and anyone who has been using the same machine for more than a year.

Where All That Storage Actually Goes

The first time I ran a proper disk analysis on a two-year-old developer MacBook Pro, the results were embarrassing. Not because the Mac was messy. Because of how invisible the clutter was. Node modules from abandoned side projects. Seven copies of the same client brief renamed slightly differently. A 14 GB Xcode simulator runtime for iOS 15 that I hadn't touched in eighteen months.

Here's what actually fills up most Macs:

CategoryTypical size (active Mac, 2 to 3 years old)Easy to delete?Rebuilds itself?
Xcode DerivedData5 to 25 GB Yes Xcode rebuilds on next build
iOS/watchOS Simulator runtimes3 to 8 GB each Yes (keep one or two)~ Re-download if needed
node_modules folders500 MB to 3 GB per project Yes npm install rebuilds
Duplicate files2 to 15 GB~ Need to identify them No
Old DMG / ZIP / PKG archives1 to 5 GB Yes No
Browser caches0.5 to 3 GB Yes Rebuilds as you browse
Unused app support files100 MB to 5 GB~ Hidden in ~/Library No
Flutter / Gradle / CocoaPods caches2 to 10 GB Yes Rebuilt on next build

Notice something about that table: most of the biggest offenders are caches that rebuild themselves. You can delete them without losing any work. Your tools just regenerate them the next time they need them. That's the low-risk, high-reward category. Start there.

Quick Wins You Can Do Right Now

These take under 10 minutes and require no tools beyond what macOS already gives you:

1

Empty Trash, including Finder's hidden trash

Free · 2 min

Right-click the Trash icon in your Dock and choose Empty Trash. If you want to be thorough: with Finder active, go to Finder → Empty Trash from the menu bar. This catches items in the Trash of network volumes that the Dock icon sometimes misses.

Typical recovery: 0.5 to 5 GB. Not glamorous, but it's free and takes thirty seconds.

2

Nuke your Downloads folder (selectively)

Manual · 5 min

Sort Downloads by Kind. You'll usually find: DMG files (app installers you already ran), ZIP archives you've already expanded, and PDF receipts from 2019. Delete confidently.

In Finder: View → Show View Options → Sort by Kind. Everything labeled "Disk Image" is safe to delete once you've installed the app.

Typical recovery
2 to 8 GB
3

Clear browser caches

Free · 2 min

Safari: Enable the Develop menu (Settings → Advanced → tick "Show Develop menu in menu bar"), then Develop → Empty Caches.

Chrome: Settings → Privacy and Security → Clear browsing data → check "Cached images and files" → Clear data.

Firefox: Settings → Privacy & Security → Clear Data → check "Cached Web Content".

Typical recovery
0.5 to 3 GB

Developer Caches (The Biggest Hidden Culprit)

If you write code, this section is for you. Developer caches are by far the most efficient storage recovery on a Mac that gets used for software development. They're also the most invisible. They live inside hidden Library folders or deeply nested project directories that normal Finder browsing never surfaces.

Xcode: DerivedData and Simulators

Xcode caches compiled output in a folder called DerivedData. For a project you've built dozens of times across multiple Xcode versions, this folder can grow to 10 to 20 GB without you ever noticing. It's completely safe to delete. Xcode rebuilds it on the next compile.

How to delete Xcode DerivedData

In Xcode: Go to Xcode → Settings → Locations. Click the arrow next to the DerivedData path to open it in Finder, then delete the folder.

In Terminal: rm -rf ~/Library/Developer/Xcode/DerivedData

Simulator runtimes are the other big Xcode offender. Each iOS version you've ever tested against takes up 3 to 6 GB. Realistically you only need the current iOS version, maybe one back for compatibility testing. The rest can go.

Delete simulators: Xcode → Window → Devices and Simulators → Simulators tab. Select the ones you don't use and press Delete.

node_modules: The Silent Folder That Never Sleeps

Every Node.js project you've cloned has a node_modules directory. Each one is typically 200 MB to 2 GB depending on the project's dependency count. If you have ten old repos on your machine, that's potentially 10 to 15 GB of modules for code you haven't touched in a year.

The terminal approach to find all of them:

# Find all node_modules directories and their sizes
find ~/Projects -name "node_modules" -type d -prune | head -20

# If you want sizes too:
find ~/Projects -name "node_modules" -type d -prune -exec du -sh {} \;

Then delete whichever projects you're done with. When you come back to an old project, run npm install and everything comes back in minutes.

Other Caches Worth Checking

CacheLocationSafe to delete?
Flutter SDK cache~/.pub-cache Yes, rebuilt on next flutter pub get
Gradle cache~/.gradle/caches Yes, rebuilt on next build
CocoaPods cache~/.cocoapods/repos Yes, rebuilt on next pod install
pip cache~/Library/Caches/pip Yes, just slows next install slightly
Docker imagesDocker Desktop → Images~ Only images you no longer use
Homebrew cacheRun brew cleanup Yes, only old versions of installed packages
Tip
If you'd rather not hunt these down manually, Files Magic AI's System Cleaner finds all of these in one scan and groups them by category, with sizes shown before you delete anything. Particularly useful if you have projects spread across multiple folders.

Finding and Removing Duplicate Files

Duplicates are sneaky. They don't accumulate in one obvious place. They scatter across Downloads, Desktop, iCloud Drive, and whatever folder your last project was in. You'll have three copies of a client logo, four versions of a contract PDF with names like "contract_FINAL_v2_USE_THIS_ONE.pdf", and a dozen identical iPhone photos that got re-imported twice.

Manual method: Finder search (tedious, but free)

Finder doesn't have a true duplicate finder. What you can do is sort by size, look for files of identical sizes, and manually check them. For photos, Smart Albums in Photos.app can surface duplicates. But for general files across your whole drive, manual scanning stops being practical pretty quickly.

Better: a content-based duplicate scanner

A good duplicate finder scans by file content (not name), so it catches files that were renamed. Files Magic AI's System Cleaner does this. It computes checksums, groups exact matches, and shows you which copy to keep based on location and date. You never delete blindly; every removal is a deliberate choice.

What counts as a duplicate?
Two files are true duplicates if their content is byte-for-byte identical, regardless of name or location. A photo and a renamed copy of that same photo with slightly different metadata might not be flagged as an exact match. Some tools handle this better than others by using perceptual hashing for images.

Unused Apps and Their Leftover Support Files

When you delete an app by dragging it to Trash, macOS removes the .app bundle. What it does not remove: the support files stored in ~/Library/Application Support/, preferences in ~/Library/Preferences/, and caches in ~/Library/Caches/. These can collectively add up to hundreds of megabytes, sometimes gigabytes for apps like design tools or video editors.

Then there are apps you still have installed but haven't opened in six months. They're taking up space without giving you anything back. A good cleaner surfaces these sorted by last-used date so you can make a quick decision.

To find leftover support files manually: open Finder, press ⌘⇧G, and go to~/Library/Application Support/. Sort by size. The folders named after apps you've uninstalled are safe to delete.

Using Files Magic AI System Cleaner

If you want to do all of the above in one session without Terminal commands or hunting through Library folders, Files Magic AI has a System Cleaner built specifically for this. Here's how it works in practice:

1

Run a scan

Files Magic AI

Open Files Magic AI and click System Cleaner in the sidebar. Hit Scan. Within a minute or two you get a breakdown by category: Duplicate Files, Unused Apps, Developer Caches (node_modules, Xcode, Flutter, Gradle), DMG Installers.

2

Review before deleting

Files Magic AI

Every item shows you its size, path, and last-accessed date. Nothing gets deleted automatically. You expand each category, uncheck anything you want to keep, and then clean what's left.

The Developer Caches section is particularly useful for developers. It breaks out node_modules, Xcode DerivedData, CocoaPods cache, Flutter cache, and Gradle separately, with sizes for each. You see exactly what's eating your disk before you touch it.

3

Clean and verify

Files Magic AI

Click Clean Selected. Files Magic AI sends everything to the Trash rather than immediately deleting, giving you a safety net. Empty the Trash once you've verified everything looks right.

Most developers I know recover 15 to 40 GB on the first scan. It's less about what you didn't know existed and more about the friction of finding it manually. A scan removes the friction.

Try Files Magic AI for free

System Cleaner, AI file organization, and offline file renaming, all in one app. 15-day free trial, no credit card required.

Start 15-day free trialLearn more

Method Comparison: Which Approach Is Worth Your Time?

MethodTime requiredTypical space recoveredBest forRisk
Empty Trash + clear Downloads5 to 10 min2 to 10 GBEveryone, first step None
Clear browser caches2 to 5 min0.5 to 3 GBHeavy browser users None
Delete Xcode DerivedData manually5 min5 to 20 GBiOS/macOS developers None (rebuilds)
Terminal: find + delete node_modules15 to 30 min3 to 15 GBDevelopers comfortable in Terminal~ Low (be careful with paths)
Manual duplicate hunt in Finder30 to 60 min1 to 5 GB (incomplete)Very small file sets~ Low but time-consuming
Files Magic AI System Cleaner10 to 20 min10 to 40 GB (comprehensive)Anyone wanting a full cleanup in one pass None (review-first)

Keeping Your Mac Clear Long-Term

Cleaning up once is satisfying. Keeping it clean is a different problem. Here's what actually works without becoming a chore:

  • Set a Downloads folder rule: Anything older than 90 days that you haven't opened gets deleted. You can automate this with Files Magic AI's scheduling feature, or just manually review it once a quarter.
  • Delete node_modules when a project goes inactive: The moment you archive a project or finish a contract, run rm -rf node_modules in the project root. You can always restore with a single command.
  • Keep only two Xcode simulator versions: Current iOS release plus one back. Delete the rest.
  • Run a system scan quarterly: Developer caches accumulate fast. A quarterly scan with Files Magic AI (or manually via Terminal) catches what daily habits miss.
  • Move completed project archives to external storage: Not everything needs to live on your primary SSD. A project you closed six months ago belongs on a backup drive or cold storage, not eating your NVMe.

Frequently Asked Questions

How do I free up disk space on my Mac quickly?
The fastest wins: empty Trash, delete old DMG installers from Downloads, clear browser caches, and run a dedicated cleaner like Files Magic AI that surfaces developer caches and duplicate files in one pass. Most users reclaim 10 to 30 GB in under 30 minutes.
What is taking up all the space on my Mac?
The top culprits on most Macs: developer caches (node_modules, Xcode DerivedData, simulator runtimes), duplicate files scattered across Downloads and Desktop, old iOS backups, unused apps with support files still in ~/Library, and accumulated DMG/ZIP archives.
Is it safe to delete Xcode DerivedData?
Yes. DerivedData is a build cache. Deleting it is completely safe. Xcode rebuilds it automatically the next time you compile. On an active developer Mac, it commonly holds 5 to 20 GB. Delete it from Xcode → Settings → Locations, or runrm -rf ~/Library/Developer/Xcode/DerivedData in Terminal.
How do I find duplicate files on a Mac?
Finder doesn't have a native duplicate finder. You can sort by size and manually look for matches, but it misses renamed copies. A dedicated tool like Files Magic AI scans by file content using checksums, so it finds exact duplicates regardless of name, and shows you where each copy lives before you delete.
Should I use CleanMyMac or Files Magic AI to free up space?
Both work. CleanMyMac focuses on system junk and privacy cleaning at $34.95/year. Files Magic AI ($7.99/month or $49.99 lifetime) adds AI file organization and offline file renaming on top of its System Cleaner, so it's a better pick if you also want your folders organized, not just cleaned. For developer cache cleanup specifically, Files Magic AI goes deeper on node_modules, Flutter, and Gradle than CleanMyMac does.
How do I delete node_modules folders on Mac?
Terminal method: Run find ~/Projects -name "node_modules" -type d -prune to find them, then delete each with rm -rf <path>.
Files Magic AI method: Open System Cleaner → Developer Caches → node_modules. It finds all of them across your Mac, shows sizes, and lets you remove without touching Terminal.
Does macOS Storage Recommendations actually work?
Partially. The "Store in iCloud" and "Optimize Storage" options help if you're already deep in the Apple ecosystem. "Reduce Clutter" basically opens a Finder window sorted by size, which is useful but manual. It doesn't touch developer caches at all, and its duplicate detection is limited to movies. For a serious cleanup, you'll need more than Apple's built-in suggestions.

Published June 27, 2026 · More guides · Files Magic AI