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

138.4K views
13 min read

My job is merciless to my Mac. Every day I test numerous apps that clog up my Mac's memory with junk. Yet it stays fast and handles everything I throw at it. How come? I love cleaning and optimizing, and I do it well. 

I'd like to share my routine on how to clean up a Mac. It works great for me, but here's a disclaimer: I can't guarantee that it'll make your Mac fly like mine (since I don't know your device and tasks). However, I do promise these tips will help your Mac run faster and perform better.

I want to…

How to do it

Quickly clean and optimize my Mac

Install and open CleanMyMac X > Click Scan > Click Run.

Get rid of large, unnecessary files

Go to Apple Menu > System Settings > General Storage > Documents > Click i icon > Delete chosen files.

Empty the trash automatically

Open Finder > Settings > Advanced > Select Remove items from the Trash after 30 days.

Manage system-intensive apps

Find out what apps use the most CPU and memory and uninstall them with App Tamer

Tidy up my Mac’s desktop

Install and open Spotless. Select everything on the desktop > Drag to Spotless drop zone > Click Process. 

Not to clutter desktop with temporary files

Install Unclutter to store files in a separate panel.

Why is it important to clean up your Mac?

We usually think about cleaning up our Mac when it starts to lag. When memory is cluttered, your computer struggles to find free space to run processes, causing tasks to take longer or even freeze. And that's really the main reason to do it: to make your Mac run faster, smoother, and last longer.

Is it possible to catch potential problems before a Mac starts to lag? Absolutely. You can use the Usage app. It creates handy widgets for your desktop, and information about memory, CPU, hard drive, etc. is always at your fingertips.

What does optimizing your Mac mean?

Optimizing Mac performance involves several tasks, and cleaning is just one of them. Another key aspect boils down to this question: "What can I do with the system, apps, and files to make them less of a drain on my Mac?" This includes software updates, bug fixes, and configuring gentler settings for your Mac. For example, I'll show you how to slow down demanding programs without closing them.

Before you start speedup and optimization, you might want to know how well (or poorly) your Mac is performing compared to the baseline or other MacBooks. In this case, I recommend using Novabench. Here's its report:

Novabench runs benchmark, stress, and bottleneck tests and provides explanations of your Mac's results. You might find it interesting to compare your laptop’s performance before and after a full clean-up, using not only subjective feelings but also actual numbers.

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 has to be cleaned up manually, while deleting apps with Uninstaller leaves no trail.

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 the performance of your Mac and apps. 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 (search 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 permanently hangs 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 clear up memory on a Mac by deleting 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 only means you'll have to launch it separately when you need to. We also have an article about managing startup items if you need more details.

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 web pages 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.

FAQ

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.

Security-tested