How to clear cache on Mac manually and automatically

You've probably encountered the word cache a million times while browsing the web. You might even have the idea engraved in your brain that it's better to clear cache on Mac. But is that really what you should do? Let's find out.

What is cache?

Cache is a small file storing temporary data. When you open a web browser or an app, this information is then retrieved instead of being downloaded to make the work or this app or browser faster and address your request within seconds. 

What are the main cache types?

There are roughly three main types of caches on your Mac:


System cacheMac's system cache is a memory bank that connects the main memory and the processor. This allows the CPU, or central processing unit, to retrieve data that your device uses to execute instructions quickly and without the need to load it bit by bit.
Browser cacheNo matter what web browser you use, they all have their own cache. Those caches store files and their elements like HTML, CSS, JavaScript, cookies, or images that your browser uses to display websites. For instance, product page images, login information, shopping cart content, etc.
User cache (including app cache)Just like a web browser, the app maintains cache of its own. It helps quickly reload images, search history, videos, and other needed information to speed up and improve the performance and efficiency of the apps.

Is it safe to remove cache? 

Generally, it is absolutely safe to remove cache because the apps you install or browsers you use will create new cache files when needed. However, caution is necessary when removing the cache generated by the system — your macOS. A good rule of thumb is to delete individual files but preserve the folders in which they were created. 

Keep on reading to find out how to get rid of cache files — either automatically or manually.

How to clear cache on Mac

You may be wondering where most cache files are stored. There are several such locations on your Mac. The first one is the folder storing application caches. If you use resource-intensive apps, such as Photoshop, its cache folder may occupy up to several gigabytes of space. Another location is each browser you use. The smallest space-eater is your system cache. 

1. How to clear MacBook cache automatically

Potential space reclaimed: up to 70%

As we've mentioned, cache files are essential for the correct functioning of apps and the system. Because they pile up, though, deleting them may be a good idea, and there is a safe way to do it — by using CleanMyMac X.

This Apple notarized app effortlessly removes outdated cache as well as temporary files, app leftovers, and more. Once it completes the very first scan, you'll be able to enjoy more disk space, better Mac performance, and higher speed. Here's how it works:

  1. Open CleanMyMac X (free download here).
  2. Navigate to System Junk in the sidebar.
  3. Click Scan, and then Clean.
CleanMyMac X - System junk scan complete

That's it. All cache files cleaned! CleanMyMac X is compatible with all systems, including the latest macOS version.

If you want to remove cache manually, we've also got some tips for you. 


2. How to delete system cache on Mac

Potential space reclaimed: Up to 10%

Let's start our cache-clearing journey by deleting system cache files — files built-in macOS system services generate for proper operation. To locate them, open the Finder, and from the Go menu, choose Go to Folder. Now, paste /Library/Caches and press Return. 

If you want to find out how much space it occupies, right-click the Caches folder and choose Get Info from the menu. You'll see the size of the folder in the info window:

To remove system cache files, browse through the com.apple folders you see and send files to the Trash. Note that only files can be deleted — keep the folders.

Tip

Clearing cache is one way to speed up your Mac. One more way to do it is to lower memory usage. To find out how to do it, check out this article on how to free up RAM on Mac.


3. How to delete browser cache on Mac?

Potential space reclaimed: up to 15%

Once you've gotten rid of system cache files, let's proceed with browser cache. If not deleted, they can pile up quickly and generate some privacy-related issues. So, it's better to remove them to secure your privacy and, as a bonus, free up some more space. The process depends on the browser you use. It's important to delete cache for all browsers you have installed on your Mac, and we'll show you how for the three most popular ones. 

How to clear cache in Safari

Deleting cache files in Safari is not as straightforward as in other browsers. However, it's still not too complex if you follow the steps we outline. There are two ways to do it. The first one is by navigating to History > Clear History in the menu bar. This way, though, you'll lose your history — information about visiting the websites you may need some time in the future. 

If you want to keep history, here's another way to clear cache in Safari. The steps vary for macOS Ventura and later and macOS Monterey and older.

macOS Sonoma/Ventura:

  1. Open Safari and go to Settings from the menu bar.
  2. Navigate to the Advanced tab and make sure that the box next to the "Show Develop menu in menu bar" option is selected. In macOS Sonoma, it is named "Show features for web developers".
  3. Quit Settings.
  4. Now, navigate to Develop > Empty Caches.

macOS Monterey or older: 

  1. Open Safari and go to Preferences > Advanced. 
  2. Enable "Show Develop menu in menu bar".
  3. Quit Preferences. 
  4. Click Develop from the menu bar > Empty caches.

Finally, restart the browser. Note that you'll have to enter your login info once again, as it will be removed along with the auto-fill details. Let's move on to the next browser. 

Did you know?

Sometimes, your browsers may misbehave because you experience issues with the network. One way to fix them is to flush the DNS cache, and here's an article on how to do it.

How to clear cache in Chrome

Clearing browser cache in Chrome is less tricky. Here's how:

  1. Open Chrome and paste the following in the search bar chrome://settings. Now, press Return.
  2. Navigate to the "Privacy and security" section and click "Clear browsing data" there. 
  3. From the list, select "Cached images and files".
  4. In "TIme range," choose "All time" and click "Clear data".

Let's move on to our last browser.

How to clear cache in Firefox

In Firefox, the process is somewhat similar to Chrome. Here's how to delete cache in Firefox manually:

  1. Open Firefox and paste about:preferences into the search bar.
  2. Navigate to the Privacy & Security section.
  3. Find Cookies and Site Data in the pane and click "Clear Data".
  4. Choose "Cached Web Content" and click "Clear" to confirm.

So, we've removed all browser cache. Now, let's try to get rid of user cache on Mac.

Tip

Another way to speed up your browsers is to delete cookies, not only browser cache. Check out our guide on removing cookies to learn more.


4. How to empty user cache on Mac?

Potential space reclaimed: up to 70%

Did you know that the single-user cache folder may take gigabytes of space? On my Mac, it's almost 3 GB, and it's just one folder. So, it's a good idea to remove user cache to reclaim valuable space and speed up your Mac.

To clear your user cache manually, do the following:
  1. Open the Finder, and from the Go menu, select Go to Folder.
  2. Type in ~/Library/Caches and press Return.
  3. Optional step: Copy all the files to a different folder if something goes wrong.
  4. Make your way through each of the folders and clean out everything.
    Note: Delete only the files from the folders, and do not send the folders themselves to the Trash.

Don't forget to empty the Trash afterward. Just control-click on the Trash icon from the Dock and choose "Empty Trash." Now, restart your Mac, and it will create new cache.


5. How to remove application cache on Mac?

In the previous step, we've removed user cache. But, as we mentioned, apps also generate cache files, so you may delete them as well. Some users believe these files are needed; still, deleting them is absolutely safe. 

Some apps may create more cache than others, for instance, Spotify, Xcode, and Steam. But removing it is still a piece of cake. 

  1. You can get rid of the app cache on Mac by opening ~/Library/Caches from the Go menu of the Finder like we did before.
  2. There, you'll find different app cache — for example, com.spotify.client stores Spotify cache. 
  3. Clear up these folders like we did with user cache: press Command-A to highlight all files, then right-click them and move to Trash.

Can I delete all my cache on Mac?

The easy answer is no. The thing is that your Mac accesses some type of cache files all the time. A safer option is to remove cache you don't need, like browser cache for all browsers you have on your Mac or app cache for apps you don't actively use. As for the system cache, it should be cleared only when you're trying to fix some issue and remove only files, not the folders.


Frequently asked questions

Is cache necessary?

It is because it helps make the user experience more enjoyable. It happens because this temporary data makes the work of your devices, browsers, and apps faster. It can accumulate over time and cause issues, though.

Is there a shortcut to empty cache on Mac?

There is a shortcut to delete browser cache. In Safari, it is Option + Command + E. If it doesn't work for your Mac, check what it is by clicking Develop in the menu bar with Safari open and looking next to Empty Caches. For Chrome and Firefox, it is Control + Shift + Delete. It should bring up the Clear data window.

Do I need admin permissions to remove cache from Mac?

Yes and no. To delete system cache, you may need to have admin permissions. But to remove app cache and browser cache, you won't need them.

Laptop with CleanMyMac
CleanMyMac X

Your Mac. As good as new.