How to clean up and optimize your Mac: My go-to methods

12 min read

My job is merciless to my Mac. Every day, I test lots of apps that create tons of files (often garbage) and clog up the Mac's memory. Yet most of the time, my machine is fast and handles many parallel processes well. How come? Because I love cleaning and optimizing and do it well. That's why I'd like to share my system of how to clean up a Mac. It works great for me, but a disclaimer. I can't guarantee that it will make your Mac fly like mine (because I don't know your device model, technical condition, and your tasks). But I do guarantee that your Mac can run faster and perform better with these tips.

Why is it important to clean up your Mac?

We usually think about cleaning our Mac when it starts to lag or freeze. And that's actually the main reason to clean your computer: to make it run faster and smoother.

When the memory is cluttered, your Mac desperately searches for free space to run a process. As a result, tasks can take longer to complete or even cause your computer to freeze. 

That's why below you'll find tips on how to clear up memory on Mac: clean up your desktop, Downloads folder, and Trash, delete old and large files, unused apps, old iOS backups, and more.

What does optimizing your Mac mean?

Cleaning is part of optimizing your Mac. But there's another factor at play here. It boils down to one question: "What can I do with the system, apps, and files to make them less of a drain on my Mac?"

Here, you'll mainly deal with software updates, bug fixes, and configuring gentler settings for your Mac. For example, you'll learn to slow down demanding programs without closing them.

How to clean up your Mac in one click

You'll find dozens of Mac cleaning tools out there. Some are better, some are worse. But my heart has long belonged to CleanMyMac X because it does several things at once: it cleans, optimizes, and protects in one or two clicks.

Here's how to do disk cleanup on Mac with CleanMyMac X:

  1. Install and open CleanMyMac X.
  2. Click Scan. The Smart Scan detects junk (in the system, Trash, and more), potential threats (viruses), and processes that slow down your computer (e.g. clogged RAM).
  3. Click Run. Your Mac will be cleaned and optimized.

cleanmymac x smart scan

Conveniently, if your Mac becomes clogged, CleanMyMac X will notify you with a cleaning and optimization suggestion. 

Smart Scan does most of the work, but you can go through other tabs depending on how you use your Mac. For example, Large & Old Files lets you get rid of forgotten stuff. In Privacy, you can clean up your browsing history, cookies, and more.

My favorite is Uninstaller. Removing apps (and I have dozens of them) by dragging them to the trash leaves behind traces that need to be cleaned up manually. And deleting apps with Uninstaller leaves no footprint.

Do this, and you'll see your Mac's efficiency increase significantly. On Setapp, you can get full access to all CleanMyMac X features for free for 7 days.

How to clean up Mac manually

Here are the key steps to help you clean up your Mac and optimize some processes.

Update your software

Software updates typically contain fixes and enhancements that improve system and app performance. Start by checking for two types of updates: for macOS and apps.

To check for updates for macOS:

  1. Go to the Apple menu > System Settings > General > Software Update.
  2. Click Update (if prompted) or schedule the update to run at night.
  3. Wait for the update to complete. It usually takes about 15 minutes, give or take, and may run in the background.

safari update on mac

Next, update your apps from the App Store: Apple menu > App Store > Update All (in the upper right corner).

Apps you didn't install from the App Store update differently. Some do it themselves in the background (this is how Setapp works, for example). Some will prompt you to install updates when you launch them, so you'll need to open them individually.

Tidy up your Mac's desktop

Cleaning up your Mac desktop means deleting unnecessary files and sorting the ones you need into the appropriate folders.

Deleting files is best done manually. Just get rid of the junk and empty the Trash.

finder empty trash automatically

Sorting is a more tedious process. A good rule of thumb is to keep your files on your hard drive (Finder > Macintosh HD) in separate logical folders. Your job is to drag and drop all your files. You can make your life easier by opening multiple windows (Command + N) or tabs (Command + T) in the Finder.

As for me, I've automated my desktop cleaning with two apps.

The first is Spotless. I open the app, select everything on the desktop, and drag it to the Spotless drop zone, which appears instantly. Then I click Process Files, and they fly into different folders. That's it; the desktop is clean. Previously, I simply set up rules like "All PDFs go to the Documents folder". If you want, you can even set up a schedule for when your desktop will clean itself this way.

spotless file list confirmation

The second app is Unclutter, which prevents your desktop from getting cluttered. This is a panel that opens when you scroll across the top of your screen. The panel is divided into three sections: Clipboard History, Files, and Notes. I most often use the Files section to keep handy temporary files that I don't want to store on my desktop. For example, I take a screenshot and immediately drag it there. It's there waiting for me to paste it into the article.

unclutter menu

Find out which apps exhaust your Mac

Check the Activity Monitor (found in Launchpad or Spotlight) to see which apps are consuming the most CPU and Memory. Are there any apps you don't need right now? If so, select the corresponding line and click the cross in the upper left corner to stop them.

The only drawback to this approach is that you won't know you are using up resources until they are used up. To keep your CPU in good shape at all times, try App Tamer. It hangs permanently in the menu bar and shows the percentage of CPU used. If an app drains it too much, it sends you a notification. Then, you can disable or slow down demanding processes right from the menu bar.

To make it even easier, you can customize your frequently used apps by checking "Quit when X minutes idle", "Run app on the CPU's efficiency cores", or "Slow down this app if it uses more than X% of CPU. For example, I set 25% for my favorite yet resource-hungry Chrome. 

app tamer slow down apps

Clean out the Downloads folder

It's the same as with your desktop. Just take courage and delete all the pictures, videos, .dmg files, and documents you don't need. Then move the files you do need to the appropriate folders. Finally, empty the Trash.

Delete large and old files

There's almost always something to clean up. Here's how to delete large and old files on your Mac:

  1. Go to the Apple menu > System Settings > General > Storage.
  2. Wait for a few seconds for your Mac to analyze storage.
  3. Scroll down to find Documents and click the i icon on the right.
  4. Review and delete large files you don't need. If necessary, sort them by date by clicking the Last Accessed column.

large files on mac

This is a fairly straightforward way, but I prefer an even more straightforward one – through CleanMyMac X, a great Macbook storage cleaner. To avoid going to System Settings, I just check for unnecessary stuff from time to time during my regular Mac scan. It takes three clicks: 1 - on Large & Old Files in the right pane, 2 - on the Scan button, 3 - on the Remove button.

cleanmymac x removing large and old files

Reduce the number of startup and login items

This refers to apps that automatically launch when your Mac starts. If you have too many, they can slow down your Mac and your entire system.

  1. Go to the Apple menu > System Settings.
  2. Choose General > Login Items.
  3. Click an app you don't want to start with your Mac, then click the – icon in the lower left corner.

mac login items

This action doesn't uninstall the app. It means you'll have to launch it separately when you need to.

Delete unused apps

Typically, uninstalling apps won't free up dozens of gigabytes of disk space. But if you're running out of space, don't skip this step.

The classic way to uninstall apps on a Mac is to:

  • Go to Finder > Applications and drop the unwanted app into the Trash.
  • Go to Launchpad, hold down the app, wait until it starts wiggling, and click the cross (this only works for apps downloaded from the App Store).

After this, you'll also need to clean up the traces left by the apps. To do so, open Finder > Go > Go to Folder. Then enter the paths and delete the folders associated with the uninstalled app one by one:

  • ~/Library/Application Support/
  • ~/Library/Preferences/
  • ~/Library/Caches/
  • ~/Library/Logs/
  • ~/Library/Containers/
  • ~/Library/Cookies/

Be careful, as some folders may contain important files, such as photos you have edited with an uninstalled photo editor.

An easier and safer way to uninstall apps with all their junk files is to use CleanMyMac X.

  1. Install and launch CleanMyMac X.
  2. Click Uninstaller in the right pane.
  3. Select the unwanted apps and click Uninstall.

cleanmymac x uninstaller

One handy little thing I love about this cleaner is that all apps are sorted into folders: Unused, Suspicious, Stores, Vendors, etc. It helps a lot not to drown in apps when you have dozens of them.

Empty the Trash

There are no secrets here (almost). To empty the Trash, right-click on it and select Empty Trash.

You can also set up the Trash to empty automatically. To do this, open the Finder and go to Finder > Settings > Advanced. Look for the line Remove items from the Trash after 30 days and check it.

finder empty trash automatically

Delete browser caches

The cache might contain outdated or corrupted data. As a result, you might have problems connecting to websites, or webpages might not display correctly.

Each browser has its own way of clearing the cache.

  • Safari. Click the Develop tab and select Empty Caches. If you don't see the Develop tab, enable it: Settings > Advanced > Show features for web developers.
  • Chrome. Go to Chrome > Settings > Privacy and security > Clear browsing data, then select Cached images and files.
  • Firefox. Go to Firefox > Settings > Privacy & Security. Locate Cookies and Site Data > Clear Data. Select Cached Web Content and click Clear.
  • Opera. Go to Opera > Settings > History > Clear browsing data. Select the time range (e.g. All time) and make sure Cached images and files is selected. Click Clear data.

Or clear the entire cache in all browsers in one go. Again, CleanMyMac X is here to help.

  1. Install and run CleanMyMac X.
  2. Select the System Junk tab and click Scan.
  3. Wait for the scan to finish and click Remove.

And you're done! All your browsers are now cache free. And if you are interested in the details, after the scan is finished (step 2), click Review Details. There, in the User Cache Files section, you'll see all the apps that contain cache and its size. 

cleanmymac x system junk details

Remove old iOS backups

This is definitely not something you want to get rid of in the first place. But if your backup is taking up a lot of space and you don't need it, delete it.

  1. Go to the Apple menu > System Settings > General > Storage.
  2. Find iOS Files and click the i icon.
  3. Select the backups you don't need and click Delete.

Repair disk permissions

Disk permissions determine who can read, write, or execute files on a disk. If these permissions are violated, third-party programs can make unauthorized changes to system files and apps.

Before macOS El Capitan (10.11), Disk Utility had a handy Repair Disk Permissions button. Now it's gone. Instead, System Integrity Protection (SIP) has been introduced to manage these permissions automatically.

If you still suspect disk permissions are causing your Mac's slowdown, you can repair them via CleanMyMac X > Maintenance > Repair Disk Permissions > Run.

cleanmymac x repair disk permissions

Run Apple Diagnostics

It's a last resort when all other methods have failed. Apple Diagnostics detects problems with hardware components.

Here's how to run Apple Diagnostics on M1 and M2 Macs:

  1. Disconnect all devices from your Mac. You can keep the essentials, such as the keyboard and mouse. Make sure you have a stable internet connection.
  2. Shut down your computer.
  3. Press and hold the power button until you see the startup options.
  4. Release the power button, then press and hold Command + D.

When the diagnostic is complete, you will receive a report with error codes, links to their descriptions, and usually solutions.

Try top tools to clean your Mac for free

So, there are two ways to clean and optimize your Mac: do it manually (which involves at least 12 different processes), or use an automatic cleaner. How do I clean up my Mac? With CleanMyMac X, one of the best tools on the market, which cleans, optimizes and protects against threats. It performs most of the cleaning tasks in one-click Smart Scan mode. For an even better effect, you can clear the cache of all browsers in one go, fix disk permissions, and more.

If you want to be proactive, here are some ideas. App Tamer sends you notifications when your Mac is about to reach its limits and helps you streamline your processes. And if you want to reduce desktop clutter, use Unclutter and Spotless.

All of these apps are available on Setapp, a platform with apps for macOS and iOS available under a single subscription. The apps are available in premium versions with no ads or hidden fees. Sign up and try them free for 7 days.


How to clean Mac junk files?

For automatic disk cleanup for Macs, CleanMyMac X is the perfect solution: you run the scan, and the app finds all the garbage that can be safely removed.

As for manual cleaning, here's a partial list of what it involves:

  1. Empty the Trash.
  2. Clearing the system cache (Finder > Go > Go to Folder. Then type ~/Library/Caches).
  3. Delete log files (Finder > Go > Go to Folder. Then type ~/Library/Logs).
  4. Delete old iOS backups, mail attachments, apps, and large files.

This should be done regularly to keep your Mac in shape.

How do I clean my MacBook effectively?

The most effective way to clean today is to use third-party cleaning apps. One of the best on the market is CleanMyMac X.

If you prefer to clean manually, you need to tidy up your Mac desktop, clean up the Downloads folder, empty Trash, and delete large and old files, unused apps, browser caches, and old iOS backups.

How to clean files on a Mac?

In the Apple menu > System Settings > General > Storage, you can find a list of all the files on your Mac, organized into separate categories (Applications, Documents, Music, etc.). From there, you can browse through each category and delete unnecessary files.

For a quicker solution, I recommend CleanMyMac X, which will scan your Mac and show you large and old files, unused apps, and other potential junk.

Why are my photos not optimizing storage on Mac?

The first possible reason is that your settings are not correct. Go to Photos > Settings > iCloud and make sure Optimize Mac Storage is selected. The second reason is that there's no need to optimize your files. Photos are compressed more aggressively when your Mac runs out of space.

How do I clean up my Mac to make it run faster?

The fastest and most effective way is to use CleanMyMac X. In one scan, you'll get rid of tons of junk that can slow down your Mac. The other way is manual. It requires you to delete large and junk files and apps, clear browser and system caches, update software, and more.

250+ apps for $9.99
per month

Sign up to Setapp and try them for free.