TheCleanDisk

How to clean up your Mac: a 12-step checklist

Published · 9 min read · By the TheCleanDisk team

Short answer

Start in System Settings › General › Storage to see what is using space. Then work from safest to most personal: empty the Trash, clear old installers from Downloads, remove apps you don't use, delete old iPhone backups, clear app caches, review large files and duplicates, and tidy login items. Back up with Time Machine before you delete anything you made yourself.

A Mac doesn't need weekly cleaning, but when the disk fills up it's worth an hour. Work through this list in order: it starts with the safest steps and ends with the ones that need your judgement. Before step 7, make sure you have a recent Time Machine backup.

1. See what is using space

Choose Apple menu › System Settings › General › Storage. The bar shows each category, and the list below has recommendations such as Store in iCloud, Optimize Storage and Empty Trash Automatically. Click ⓘ next to a category to see what is in it.

2. Empty the Trash

Files in the Trash still take space. Control-click the Trash in the Dock and choose Empty Trash. Photos and Mail have their own trash too: in Photos, empty Recently Deleted; in Mail, choose Mailbox › Erase Deleted Items.

3. Clear out Downloads

Open Downloads in Finder, choose View › as List and sort by Size. Disk images (.dmg), installer packages (.pkg) and archives you have already opened are usually safe to delete.

4. Remove apps you don't use

In Storage settings, click ⓘ next to Applications and sort by size or last used. Delete apps from there or drag them from the Applications folder to the Trash. Apps often leave support files behind; our guide to uninstalling apps completely shows where to look.

5. Delete old iPhone and iPad backups

Local device backups can take tens of gigabytes. In Storage settings, click ⓘ next to iOS Files and delete backups you no longer need. You can also connect the device, select it in the Finder sidebar and click Manage Backups. Keep the latest backup of any device you still use.

6. Clear app caches

Caches are temporary files apps rebuild on their own. Quit the app first, then in Finder choose Go › Go to Folder, type ~/Library/Caches and delete the folder for that app. Browsers have their own setting: in Safari, turn on Settings › Advanced › Show features for web developers, then choose Develop › Empty Caches. Read what is safe to delete before you go further.

7. Review large files

In Storage settings, click ⓘ next to Documents and open Large Files. Preview each file with Quick Look (select it and press Space) before deleting, and move anything you might need to an external drive. See how to find large files for Finder and Terminal methods.

8. Remove duplicate files

Duplicates pile up from repeated downloads, exports and copied folders. Photos has a built-in Duplicates album, and Music can show duplicate songs. Our guide to finding duplicate files on a Mac covers every method. Always keep one copy.

9. Shrink Mail downloads

Mail saves copies of attachments you open. In Finder, choose Go › Go to Folder and open ~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads. Files there are copies; the originals stay in your email.

10. Clean developer data

If you use Xcode, DerivedData, old simulators and device support files are usually the biggest wins. Follow our guide to clearing Xcode DerivedData for safe commands.

11. Tidy login items

This won't free space, but it keeps startup lean. Go to System Settings › General › Login Items (called Login Items & Extensions in newer versions of macOS) and remove apps you don't need at login. Under Allow in the Background, turn off items from apps you no longer use.

12. Tidy your desktop and restart

Move files off the desktop into folders, then restart your Mac. A restart clears temporary files and lets macOS reclaim space from local snapshots and caches it no longer needs.

Do it in one place with TheCleanDisk

TheCleanDisk brings most of this list into one read-only scan: caches and junk, old device updates, downloads, large files, duplicates, app leftovers and developer data. Each item is explained, only data apps rebuild is pre-selected, and everything you clean can be restored for 7 days. It is free on the Mac App Store.

Common questions

What is the safest way to clean up a Mac?

Use the built-in Storage settings first, delete only things you can identify, and keep a Time Machine backup. Caches and installers are low risk; documents, photos and anything in iCloud need a careful look.

How do I clean junk files on a Mac?

Junk usually means caches, logs, old installers, iPhone backups and leftovers from deleted apps. Empty the Trash, clear Downloads, delete old backups in Finder and remove app caches from ~/Library/Caches with the app closed.

Should I clean the System Data category?

Not by hand inside system folders. System Data shrinks when you remove local Time Machine snapshots, old iPhone backups, caches and developer data. See our guide to System Data for safe steps.

How much free space should a Mac have?

Aim to keep at least 10 to 15 percent of the startup disk free, and more before a major macOS update, which needs extra room to install.