Some people may be surprised to learn that a MacBook needs a regular cleanup. With our tips, you can make your Mac tidier. You can start by cleaning up your Desktop, but there’s more to it. Keep on reading to learn the best ways to clean up Mac on the inside and on the outside.
What really takes up space on your Mac
Have you ever wondered what clogs up your Mac the most? These are different files and data, and they can be classified into the following groups: large and old files, system junk, app leftovers, old backups, photos junk, trash bins, and mail attachments.
How to check storage on Mac and why you should do it
Let’s start with a quick reminder of how to check storage on Mac:
- Go to System Settings > General > Storage.
- Look at a colored graph — it shows how much space each category takes up.
- Note System Data (Other in older macOS versions). It mainly holds files and data the system uses, such as log files, caches, and VM files, along with temporary files and app support files. macOS manages this category, so you can’t select and delete its contents in Storage settings, and its size changes with the state of your Mac.
Now that you know how to check storage, the main question is why and when you should do it. There are three possibilities:
- Regular maintenance — we suggest cleaning up your Mac regularly (say, once a month)
- Update issues — you cannot update your Mac because there’s not enough free space to install a new macOS version
- Troubleshooting — your Mac’s performance has dropped significantly, overheating, frequent app crashes and beach balls, or slow startup. Apple lists a startup disk without enough free space as one possible reason a Mac runs slowly
How to clean & optimize your Mac [expert tips]
If you have never performed an automatic or manual system cleaning — it means that your Mac has been collecting unnecessary files and clutter for years. You can quickly clean up your Mac with these easy steps. If you want to perform a full clean, make sure to follow all of the steps we mention here.
But before you jump into cleaning, make a backup — just in case your cleaning effort is too aggressive and you lose any important files.
1. Completely uninstall apps you don’t use
The applications you’ve installed on your Mac take up space, of course. And over time, when your Mac becomes full of different apps, it may start running slowly. How to clean MacBook? In the first place, you need to remove the apps you no longer use or need. To do this, quit the app, then drag it from the Applications folder to the Trash/Bin, or select it and choose File > Move to Trash in the Finder menu bar. If the app comes with its own uninstaller, use that instead.
You may be surprised to find out that sending an app to Trash/Bin may not uninstall it completely, because app leftovers, such as login items, extensions, and other data the app stored elsewhere, can remain on your Mac. So, if you want to be a responsible Mac user, you need to uninstall applications the right way. Here’s a step-by-step guide on how to uninstall apps on a Mac.
While removing apps you no longer need, you can take a step further — manage apps launching at startup. Go to System Settings > General > Login Items & Extensions and remove the login items you no longer need. It is not necessarily a cleanup-related tweak, but it means fewer items open automatically when you log in.
2. Clean up system, user, and application cache
You’ve probably heard “remove your cache” as a web browser troubleshooting tip. In fact, your Mac stores a lot of information in files called caches, allowing fast access to that data and reducing the need to get it from the original source again. Those files take up space on your Mac, so clearing caches can free some of it, although macOS creates some system caches again as needed.
There are two ways to do that: you can delete them manually or use a MacBook cleaner like CleanMyMac to do the job for you. If you decide to clean up the cache manually, check out a comprehensive guide on how to clear cache on a Mac. Here, you’ll find steps to delete different types of cache files: system cache, user cache (including app cache), and browser cache.
If you want to get rid of cache the easy way, use CleanMyMac:
- Open the app (get your free trial here).
- Navigate to Cleanup in the sidebar and click Scan.
- Now, click Clean. Or you may click Review to choose what will be deleted from your Mac.
That’s all it takes to get rid of cache. Note that the app is notarized by Apple, which means Apple checked it for malicious software and found none. By default, it only offers to remove data that macOS and apps create automatically, and you can review what it found before you clean.
Tip: The Cleanup feature also finds other categories of space hoggers — mail attachments, unneeded language files, and Xcode junk.
3. Empty the Trash [important but frequently ignored]
Even though you’ve deleted the files, they reside in your Trash bin, taking up a lot of storage on your Mac. They are just waiting to be removed completely. If you want your precious hard drive space back, you need to empty the Trash/Bin.
Here’s how to clean your MacBook from the trash:
- Click the Trash/Bin icon in the Dock.
- Click Empty in the upper-right corner of the Finder window, then click Empty Trash to confirm. Items you empty from the Trash are permanently deleted.
4. Optimize your storage with a built-in tool
Apple has already thought about the clutter that can be generated on Macs and provided a possible solution. Here’s how to reduce clutter on your Mac:
- Go to System Settings.
- Click General and then Storage. Here, you can see how much free space is left on your computer.
Here are also some recommendations for saving space on your Mac. These are known as built-in Optimize Storage tool. You can choose Store in iCloud to keep most of your files in iCloud and only recent ones in full on your Mac (this uses your iCloud storage plan), or Optimize Storage to automatically remove movies and TV shows you've already watched from your Mac. Besides, you can enable iCloud Drive in System Settings > Apple Account > iCloud > Drive. You can then store files in iCloud Drive, which you can open from the Finder sidebar.
Also, you can remove unneeded files from here. Also, you can remove unneeded files from here. Just click the info icon next to a category that has one (Applications, Trash/Bin, Documents, etc.), and you’ll see the list of files or apps stored. Select an item and click Delete to remove it and optimize space. Look through other recommendations and make the necessary changes to use your Mac’s space more efficiently. Do not forget to check Messages in this list — this way, you will remove unneeded attachments.
5. Delete large and old files [strategic step]
Apple lists a startup disk without enough free disk space as one possible reason a Mac runs slowly. To get space back, you can move files to another disk or delete the ones you no longer need, and large files are a good place to start.
How to have more free space? Delete large and old files. To find them by hand, go to System Settings > General > Storage and click the Info button next to Documents. There, you can view large files and sort them by Size or by Last Accessed to spot the ones you haven’t opened for a while. To check a file before you remove it, select it, click Show in Finder, and move it to the Trash from there.
Or let CleanMyMac do the job for you:
- Get your free CleanMyMac trial.
- Open the app.
- Go to My Clutter and click Scan > Review All Files > Large & Old Files.
- Select what to clean, and then click Remove. CleanMyMac deletes these files permanently, without moving them to the Trash.
That’s it! You can also check Similar Images, Duplicates, and Downloads to delete even more unnecessary stuff.
6. Delete unneeded Downloads and declutter Desktop
Do you also download things and never get rid of them? Then, your Downloads folder probably needs a good old sort-out. If you’re too scared to face that enormous pile of files, here’s a quick trick: sort all your downloaded items by the date added. In List view, clicking the Date Added column again reverses the order, so you can bring the dusty files that have been there for a while to the top. Command-click to highlight multiple files and send them to the Trash.
Now that you’re done with the Downloads folder, do the same with the Desktop. As an extra organizing tip, you can use Stacks to make your Desktop look tidy, but remember to declutter it — files quickly pile up under those stacks.
7. Remove old iPhone and iPad backups
Having your files backed up is a wonderful thing. But over time, old iPhone and iPad backups can pile up on your Mac and take up storage. That’s why you should consider removing the old iOS backups you no longer need.
Each backup remains stored on your computer. To delete the old backups, you need to do the following:
- Choose the Apple menu and then select System Settings.
- Go to General and click Storage.
- Click the “i” icon next to iOS Files.
- Select the backup you want to remove and click Delete.
- Click Done to close the window.
That’s it! The backup files are gone from your Mac forever.
8. Delete old DMGs
Disk images (DMGs) often take up valuable space on your Mac. Here’s how to perform a Mac cleanup and get rid of those files:
- Open the Finder and type “.dmg” in the search bar.
- Then, delete the .dmg files you no longer need, such as installers for apps you’ve already installed. A disk image is a file that can contain other files and folders, so check what each one holds before you delete it. Don’t forget to remove them from Trash/Bin as well.
CleanMyMac can also help with leftover installers: open the app, go to Applications and run a scan, then click Manage My Applications and open Leftovers > Installers to review what it found and choose what to remove.
9. Clear System Data storage
Another category to check is System Data storage. You may have noticed this mysterious category when you went to System Settings > General > Storage to check how much space you had on your computer. If you haven’t, consider doing it now and checking what you can clear as a final step in cleaning up your MacBook.
According to Apple, System Data mainly holds files the system uses, such as log files, caches, VM files and other runtime resources, plus temporary files, fonts, app support files and plug-ins. macOS manages the contents of this category, so you can’t select and delete them in Storage settings, and the macOS system files themselves sit on a read-only system volume that Apple protects cryptographically.
What you can do is clear caches (step 2), which are among the files Apple counts here. Starting up your Mac in safe mode also clears certain system caches, which macOS creates again as needed. For data an app keeps outside the other categories, Apple suggests managing it in the Finder or in the app that created it.
For more ways to clear System Data Storage on Mac, check out this handy guide.
10. Use Mac cleaner apps [automatic cleaning]
If you feel that following all these steps is a lot of work, there’s a quicker way to keep your Mac in top shape — let a Mac cleaner app do it for you. We’ve already introduced our favorite app in this article, and it is CleanMyMac. However, there are other apps out there you can try.
To choose a utility that best suits your needs, check out this article on best Mac cleaner software. Remember to always conduct a quick research about an app’s developer before you install it, and prefer apps notarized by Apple, which means Apple checked them for malicious software and found none.
11. Wipe your keyboard
Now, it’s time to physically clean your Mac. First, wipe your Mac’s keyboard. As you use your keyboard daily, it quickly gets dirty. Moreover, all those crumbs may live under the keys forever!
If you were wondering how to clean Mac’s keyboard, Apple has a few rules: shut down your Mac and unplug the power adapter first, and keep moisture out of any openings. If a key is unresponsive or feels different from the others, Apple describes cleaning the keyboard with compressed air: hold your Mac at a 75-degree angle and spray the keys from left to right.
To disinfect the keys, you can use a 70 percent isopropyl alcohol wipe, a 75 percent ethyl alcohol wipe, or Clorox Disinfecting Wipes, but don’t use aerosol sprays or spray anything directly onto the keyboard. Use a soft, lint-free cloth and wipe the keys gently to make them clean and shiny.
12. Clean your screen
Also, do not forget about cleaning the screen. It may seem spotless, but it’s rarely the case. So, take some time to clean it — shut down your Mac, unplug the power adapter, and use a soft, lint-free cloth dampened with water only, not a paper towel or other abrasive material. Make sure that you spray water on the fabric, not the screen, and wipe it gently. If your Mac has a nano-texture display, follow Apple’s separate instructions in how to clean your Apple products.
If you’re in the mood for some major cleaning, here’s our article on how to clean other Mac accessories.
Bonus tips
Once you’ve followed these steps, there are a few more things to keep in mind:
- Do not ignore post-cleaning maintenance: as we’ve mentioned before, develop your own cleaning schedule and stick to it. This will help avoid clutter buildup.
- Monitor your Mac’s performance: if anything goes wrong, you can restore files from the Time Machine backup you made before cleaning. If you’ve removed cache files, keep in mind that macOS creates some of them again as needed.
- Keep your Mac up-to-date: update both the macOS (System Settings > General > Software Update) and the apps. This way, you'll have the latest features, and Apple recommends the latest compatible macOS for security, stability, and compatibility.
- Always be cautious: do not delete anything you think may be vital; always double-check what you send to the Trash, and keep any file you can’t identify.
- If cleanup went wrong: restore your files from a Time Machine backup made before the cleanup.
Happy cleaning!
Frequently asked questions about cleaning up a Mac
Does Apple recommend CleanMyMac or other Mac cleaner apps?
Apple’s own guide to freeing up storage space uses only built-in tools: Storage settings and its recommendations, deleting files and apps you no longer need, emptying the Trash and, when you need space only for a while, starting up in safe mode. It doesn’t mention third-party cleaner apps. If you choose one from outside the App Store, prefer an app that is notarized by Apple, which means Apple checked it for malicious software and found none. CleanMyMac is notarized by Apple and is also available on the App Store.
What is the rm -rf command and is it safe to use?
rm -rf removes the files and folders you name, including everything inside each folder, without asking you to confirm, and nothing goes to the Trash. A wrong path can remove much more than you meant, so we don’t recommend it for cleaning up a Mac, and never with sudo on system folders. For manual cleanup, drag items to the Trash instead: until you empty it, you can still put an item back.
Should I erase and reinstall macOS to clean up my Mac?
The short answer is no. Reasons to do it include selling or giving away your MacBook or dealing with a particularly nasty piece of malware that a reputable antimalware tool could not remove.
What should I do before using any cleaning utilities?
Back up your Mac first, for example with Time Machine. If a cleaning utility removes something you need later, you can restore it from that backup.