Coffee
← Blog Mac Productivity

How to Free Up Disk Space on Mac: 15 Steps, Safest First

By FavTray · · Updated

Written by the team behind FavTray, a Mac developer dashboard for the menu bar. We check every app we cover against its own site, docs or a hands-on test, and each post says which.

Short answer: to free up disk space on a Mac, open Apple menu › System Settings › General › Storage, turn on the Recommendations (Store in iCloud, Optimize Storage, Empty Trash automatically), then click the info button next to each big category and delete large files, unused apps and old iPhone backups. Empty the Trash afterwards: nothing is freed until you do.

TL;DR

  • Start with Storage settings. It is the Mac’s built-in disk cleanup, and it shows which category is big before you delete anything.
  • Safest wins first: Trash, Downloads, large files you recognise, apps you don’t use, old iPhone backups.
  • Biggest wins are usually video, the Photos library, iPhone backups, Messages attachments, and for developers Docker, Xcode and node_modules.
  • Terminal finds what Storage settings hides: six read-only commands below show where the space really went.
  • Delete in the owning app (Finder, Photos, Docker, Xcode), not by dragging folders out of ~/Library. You don’t need a cleaner app.

How do I see what’s taking up disk space on my Mac?

Open Apple menu › System Settings › General › Storage (scroll down in General if you need to). On macOS Ventura 13 and later this shows a coloured bar of used space and a list of categories with their sizes; on older versions it’s under Apple menu › About This Mac › Storage, per Apple’s storage guide.

Wait for the bar to finish calculating, then read the list from the top:

If this category is bigGo to
DocumentsSteps 2, 3 and 9
ApplicationsStep 5
iOS FilesStep 6
MessagesStep 7
Photos, TV or MusicSteps 4 and 9
DeveloperStep 11
System DataSteps 10, 12 and 13, and what System Data is

For a second opinion from Finder, Disk Utility or Terminal, our guide on how to check disk space on a Mac compares all four views, and explains why they rarely agree (mostly purgeable space).

Which steps free the most space on a Mac, and which are safest?

Here are all 15 steps in this guide, ordered safest first. “Comes back” means the space refills on its own as you use the Mac.

#StepWhereUsual impactRiskComes back?
1Empty the Trash (and Photos’ Recently Deleted)Dock, PhotosSmall to largeNone, if you checked itNo
2Clear DownloadsFinderMediumLowSlowly
3Delete large files you recogniseStorage › DocumentsLargeLowNo
4Turn on the RecommendationsStorage settingsMedium to largeLow, needs iCloud spaceManaged for you
5Uninstall apps and games you don’t useStorage › ApplicationsMediumLowNo
6Delete old iPhone and iPad backupsFinderMedium to largeLow, if backed up elsewhereOn next backup
7Remove large Messages attachmentsStorage › MessagesSmall to largeLowSlowly
8Clean up MailMailSmallLowSlowly
9Move media libraries to an external driveFinder, PhotosLargeMedium: drive must be connectedNo
10Find hidden space with TerminalTerminal (read-only)Shows, doesn’t freeNonen/a
11Clear developer dataXcode, Docker, Homebrew, npmLarge for developersMediumYes
12Clear app cachesEach appSmall to mediumLowYes
13Thin local Time Machine snapshotsTerminalSmall to largeLowYes, hourly
14Restart, or safe mode onceApple menuSmallNoneYes
15Use a disk map for what’s leftAppShows, doesn’t freeNone, if read-onlyn/a

Part 1: How do I free up disk space on Mac with Storage settings?

Apple’s own tools cover most of the space on most Macs. Do these first.

1. How do I empty the Trash properly?

Right-click the Trash in the Dock and choose Empty Trash. Files you move to the Trash keep using space until you do this, which Apple states plainly in Free up storage space on Mac.

Two other bins catch people out:

  • Photos keeps deleted photos and videos in Recently Deleted for 30 days. In Photos, click Recently Deleted under Utilities in the sidebar, unlock it, select what you want gone and delete it. That deletion is permanent. Apple explains the album in the Photos User Guide.
  • Mail keeps deleted messages until you choose Mailbox › Erase Deleted Items.

To stop the Trash piling up again, turn on Finder › Settings › Advanced › Remove items from the Trash after 30 days.

2. What can I safely delete from Downloads?

Old installers, disk images and archives you’ve already opened are safe to delete from Downloads in almost every case. Open Finder, choose Go › Downloads, switch to List view (Command-2) and click the Size column.

  • Disk images (.dmg) and installers (.pkg) for apps you’ve already installed.
  • .zip files you’ve already unzipped.
  • Duplicates with “(1)” or “copy” in the name.

3. How do I find and delete large files on a Mac?

In System Settings › General › Storage, click the info button next to Documents. The Large Files list shows your biggest files with their size and last-opened date; select any you don’t need and click Delete.

Finder can search the whole Mac too:

  1. In a Finder window, press Command-F.
  2. Click This Mac.
  3. Click the first pop-up menu (it says Kind), choose Other…, tick File Size, and click OK.
  4. Set it to is greater than 1 GB.

Videos, disk images, old virtual machines and screen recordings usually top the list. Our guide to finding large files on a Mac has more search recipes.

4. Should I turn on Store in iCloud and Optimize Storage?

Yes, if you have iCloud space to spare: they are Apple’s way to keep disk space free automatically. You’ll find them under Recommendations at the top of Storage settings. According to Apple’s optimize storage guide:

RecommendationWhat it doesTrade-off
Store in iCloudDesktop and Documents go to iCloud Drive, photos and videos to iCloud Photos, Messages attachments to iCloud. Only recently opened files stay on the Mac when space is neededNeeds iCloud storage and an internet connection to open older files
Optimize StorageRemoves Apple TV movies and shows you’ve already watched, and keeps only recent Mail attachments on the Mac when space is lowYou re-download to watch again
Empty Trash automaticallyErases items that have been in the Trash for more than 30 daysNone, really

If you already use iCloud Drive, you can free a single file or folder without deleting it: right-click it in Finder and choose Remove Download. The file stays in iCloud. Don’t use Delete on iCloud Drive files to save space: that removes them from every device.

5. Which apps should I uninstall to get more storage?

Uninstall the large apps you haven’t opened in months. In Storage settings, click the info button next to Applications, sort by size and check the Last Accessed date.

Select an app there and click Delete, or drag it from Applications in Finder to the Trash. If the app came with its own uninstaller (common with Adobe, Microsoft and some VPNs), use that instead: it also removes helpers and support files. Uninstall games through Steam, Epic or the App Store, so the launcher knows and you can download them again later.

6. How do I delete old iPhone backups from my Mac?

Local iPhone and iPad backups can each take many gigabytes. Delete the ones you don’t need from Finder, following Apple’s steps:

  1. Connect the device with a cable, then open Finder.
  2. Select the device in the sidebar.
  3. On the General tab, click Manage Backups.
  4. Right-click a backup you don’t need and choose Delete.

A deleted backup can’t be recovered, so keep the latest backup of any device you still use, unless it’s also backed up to iCloud. Storage settings lists the same backups under iOS Files.

7. How do I clear Messages attachments?

In Storage settings, click the info button next to Messages to see large attachments, photos and stickers sorted by size, then select and delete the ones you don’t need.

To stop it growing, open Messages › Settings › General and change Keep messages from Forever to 1 Year or 30 Days. Read the prompt carefully: it deletes older conversations and their attachments.

8. How do I clean up Mail?

In Mail, choose Mailbox › Erase Junk Mail, then Mailbox › Erase Deleted Items. With Optimize Storage on (step 4), Mail also keeps only recent attachments on the Mac.

9. Can I move my Photos library to an external drive?

Yes, and for many people it’s the single biggest win. Apple documents it in Move your Photos library to save space on your Mac:

  1. Quit Photos.
  2. In Finder, open your Pictures folder and drag Photos Library to an external drive formatted APFS or Mac OS Extended (Journaled). Apple says not to use your Time Machine drive, an SD card, a USB flash drive or network storage.
  3. Double-click Photos Library in its new place to open it. If you use iCloud Photos, set it as the System Photo Library in Photos › Settings › General.
  4. Once you’ve confirmed everything is there, delete the original and empty the Trash.

The drive has to be connected whenever you open Photos. The same idea works for Final Cut libraries, Logic projects and iMovie: move them in their app, or while the app is closed.

Part 2: What Terminal commands free up disk space on a Mac?

Terminal shows the space Storage settings lumps into System Data or Developer, and lets you clear developer leftovers with their own tools. The first block below is read-only: it only measures.

10. How do I find what’s using space with Terminal? (read-only)

# Free space on the startup disk
df -h /

# Your 20 biggest folders one level inside your home folder
du -hd 1 ~ 2>/dev/null | sort -h | tail -20

# Biggest folders inside ~/Library (caches, app data, containers)
du -hd 1 ~/Library 2>/dev/null | sort -h | tail -15

# Every file over 1 GB in your home folder
find ~ -type f -size +1G 2>/dev/null

# Local Time Machine snapshots on the startup disk
tmutil listlocalsnapshots /

# How much Docker is using, by images, containers, volumes and build cache
docker system df

None of these change anything. Once you know which folder is big, clear it from the app that owns it, not with rm. Our developer guide to what’s eating your Mac’s disk decodes the usual folder names.

11. How do I clear developer files (Xcode, Docker, Homebrew, npm)?

On a developer’s Mac, this step often frees more than all the others put together. Use each tool’s own cleanup command, and read its prompt before you confirm:

# Xcode: remove simulators for runtimes you no longer have
xcrun simctl delete unavailable

# Homebrew: remove old versions and the download cache
brew cleanup --prune=all

# npm: clear the package cache (rebuilt on next install)
npm cache clean --force

# Docker: remove stopped containers, unused networks, dangling images and build cache
# (asks to confirm; add --volumes only if you mean to delete volume data)
docker system prune

Xcode’s DerivedData (~/Library/Developer/Xcode/DerivedData) is safe to delete while Xcode is closed; it rebuilds on the next build. Old simulator runtimes go from Xcode › Settings › Components. For Docker’s disk image, which doesn’t shrink on its own, see Docker using too much disk space on Mac.

12. Should I clear caches?

Clearing caches buys time, not permanent space, because apps rebuild them. Do it inside each app where you can: browsers, Slack, Teams, Spotify and Discord all keep large caches and most have a clear-cache option. If you clear ~/Library/Caches by hand, quit the app first and delete only its folder.

13. Can I delete local Time Machine snapshots?

Yes, but you rarely need to: macOS removes local snapshots on its own when it needs space, so they mostly show up as purgeable space. If an app or installer refuses to run because the disk looks full, this deletes every local snapshot on the startup disk (it asks for your password):

# Destructive: removes all local Time Machine snapshots on the startup disk
sudo tmutil deletelocalsnapshots /

Your backups on the Time Machine drive itself are not touched. Snapshots and caches are part of System Data, and this guide to System Data walks through each part.

14. Does restarting free up space?

A little. A restart can release swap files and some temporary files. If you need room for a macOS update right now, Apple says starting up in safe mode once might free enough space temporarily to finish the update; restart normally afterwards. The full rescue routine is in what to do when your startup disk is almost full.

How do I free up space on a MacBook Air with a small SSD?

Start with the three things that grow without you noticing: the Photos library (step 9, or Store in iCloud), iPhone backups (step 6) and Messages attachments (step 7). Then turn on the Recommendations (step 4) and remove large apps you don’t use. The steps are the same on any Mac; a small SSD just leaves less margin.

What should I never delete to free up space?

  • Anything in /System, /private or /Library/Apple.
  • ~/Library/Mobile Documents, which is your iCloud Drive.
  • Whole folders in ~/Library you can’t name, especially Containers and Group Containers.
  • Docker’s disk image, virtual machines and Xcode Archives, unless you mean to lose what’s in them.
  • The Photos Library or any app library from inside Finder. Use the app.

Part 3: Which disk cleanup app for Mac should I use?

You don’t need one. Every step above uses built-in tools, and you see exactly what goes. A disk map helps when Storage settings doesn’t explain where the space went. Prices as of November 2026:

ToolWhat it doesDeletes files?Price
Storage settingsCategories, large files, RecommendationsYes, what you selectFree, built in
Terminal (du, find)Exact folder and file sizesOnly if you tell it toFree, built in
GrandPerspectiveTreemap of every file, open sourceYes, what you selectFree from SourceForge, $2.99 on the App Store
DaisyDiskInteractive disk map, protects system filesYes, what you select$9.99 once, free trial
FavTray SpaceTreemap, named folders, owner-app hand-offs, historyNeverPro ($4.99 once), free 7-day trial

For more options, compare the best disk space analyzers for Mac. If you’re shopping for a one-click cleaner anyway, read our CleanMyMac alternatives and DaisyDisk alternatives first.

How does FavTray Space help free up disk space?

We make FavTray, so weigh our take accordingly. FavTray is a macOS menu bar app with 15+ developer and productivity tools, free with daily limits, $4.99 once for Lifetime.

FavTray Space does the “where did it go” part of this guide, read-only. It draws a treemap of every folder, names about 115 kinds of folder that grow on a Mac (caches, iPhone backups, Messages attachments, installers in Downloads, game libraries, Xcode, simulators, node_modules, Docker, local AI models) and ranks a Worth a look list by size and by how easily each item comes back. Your own work is never offered. It never deletes, moves or changes a file: “Where to clear it” opens the app that owns the data and shows the menu path.

History shows what grew this week and, after a few scans, forecasts when the disk fills. DaisyDisk is the better pick if you want to delete straight from the map. Space is part of Pro; Free shows your capacity, the known recoverable total and the top 3 categories with names hidden. Every install gets a 7-day full Pro trial with no card (pricing). It runs on macOS 14 Sonoma or later and keeps every scan on your Mac.

Try FavTray Free

One free Mac menu bar app: notch island, ports, keep-awake, clipboard, eye rest, and Claude and Codex limits.

Download Free

Frequently Asked Questions

What is the fastest way to free up disk space on a Mac?

Empty the Trash, then open System Settings › General › Storage and click the info button next to Documents. The Large Files and Downloads lists show your biggest files with their size and last-opened date. Delete old videos, disk images and installers you no longer need, then empty the Trash again. Moving files to the Trash frees nothing until you empty it.

Is there a Disk Cleanup tool on Mac like on Windows?

Yes. The Mac's equivalent is System Settings › General › Storage on macOS Ventura 13 and later (About This Mac › Storage on older versions). It shows space by category, lists large files, apps and iPhone backups you can delete, and offers Store in iCloud, Optimize Storage and Empty Trash automatically. You don't need a third-party cleaner to free up space.

Why is my Mac storage still full after deleting files?

Usually the Trash wasn't emptied, or the files went to Photos' Recently Deleted album, which keeps items for 30 days. Local Time Machine snapshots can also keep holding deleted data until macOS needs the space; tmutil listlocalsnapshots / shows them. Storage settings can take a few minutes to recalculate, so check again after a short wait or a restart.

How do I free up space on my MacBook Air?

The same way as any Mac, but small SSDs fill faster, so prioritise the big three: move your Photos library to an external drive, turn on Store in iCloud for Desktop and Documents, and delete old iPhone backups from Finder › Manage Backups. Then remove large Messages attachments and apps you haven't opened in months. Except the Photos move, each is in System Settings › General › Storage.

Can I delete everything in ~/Library/Caches?

Apps rebuild their caches, so deleting a cache folder doesn't lose your data, but clearing everything while apps are running can make them misbehave until you restart. It's safer to clear caches from inside each app, or quit an app and delete only its own folder. Never delete /System/Library/Caches, and remember the space comes back as you use the app.

Do I need a cleaner app to free up space on a Mac?

No. Everything a cleaner does can be done with System Settings, Finder, Terminal and each app's own settings, and doing it yourself means you see exactly what's removed. A disk map such as GrandPerspective (free), DaisyDisk ($9.99) or FavTray Space helps you find where the space went; the deleting is safest done in the app that owns the data.