How to Delete Temporary Files on Mac Automatically and Manually

Clare Phang
Last updated: Nov 21, 2024

Are temporary files consuming your valuable storage space? Read on to discover how to effectively delete them from your Mac.

Temporary files constantly created on your Mac can consume valuable storage space. While some of them are automatically cleared, most are still stored on your drive, eating up your precious storage space.

Wondering what temporary files are, where they are stored, and, more importantly, how to clear them? Look no further. Here, you will find all the answers.

Let's find out.

How to Delete Temporary Files on Mac Automatically and Manually

What Are Temporary Files?

Temporary files are files that are created automatically when we use apps and visit websites. They are designed to help apps run faster and pages load without delays. The main forms of temporary files include caches, log files, browser cookies, and intermediate document versions.

We don't delete them because we don't know where they are. But it's necessary to delete them because they can take up several gigabytes of space.

So, where exactly are the temp files? Keep reading to find out.

Where Are the Temporary Files on Mac?

As we mentioned earlier, temporary files come in several forms, so it's hard to find all of them. But luckily, you can use Terminal to quickly find the main temporary folder on your Mac. Here's how:

  1. Open Finder > Applications > Utilities > Terminal.
  2. Paste open $TMPDIR into Terminal and press Return, you will see the path to the main temporary folder.
Find Main Temporary Files on Mac

In addition to the main temporary folder, there are other temporary folders on your Mac, which are located in the following locations:

  • /tmp
  • /private/var/tmp
  • /private /var/at/tmp
  • /private/var/spool/cups/tmp

The cache is also part of the temporary files. The Caches folder in the user directory holds all of your app's temporary files. If you are having problems with an app, clearing its cache may solve your problem.

Now that you know where your temporary files are, let's see how to get rid of them from your Mac.

How to Clear Temporary Files on Mac Automatically

Finding and deleting temporary files manually on a Mac is time-consuming. The best way to do that is to use BuhoCleaner, a handy cleaner for Mac. This tool helps you remove temporary files like log files and caches with only a few clicks.

DownloadFor macOS 10.10 and above
100,000+ Satisfied Users Worldwide

Here's how to delete temporary files on Mac with BuhoCleaner:

  1. Download, install and launch BuhoCleaner.
  2. Click the Scan button, and it will automatically scan your Mac for unnecessary files.
  3. Delete the file results according to your needs.
Quickly Clear Temporary Files on Mac Using BuhoCleaner

How to Delete Temporary Files on Mac Manually

If you prefer to do it manually, here's what you need to do.

Clean App Cache

  1. Quit all the apps you're using.
  2. Open Finder, then press Shift + Command + G to open the Go to Folder window.
  3. Type ~/Library/Caches/ and press Enter.
  4. Highlight the cache files you want to delete and drag them to the Trash.
  5. Empty the Trash folder.
Manually Delete Cache Files on Mac
Tip
We do not recommend you delete any files you are not sure can be deleted.

Clear Browser Temporary Files

Safari:

  1. Launch Safari.

  2. Click the Safar menu and select Settings > Privacy.

  3. Under Cookies and website data, select Manage Website Data... and click Remove All.

  4. Confirm and click Remove Now.

    Delete Safari Temporary Files

Chrome:

  1. Open Chrome.

  2. Click the hamburger menu in the upper right corner of the Chrome window.

  3. Select More Tools > Clear Browsing Data.

  4. Select the data to delete and click Clear Data.

    Clear Chrome Temporary Files

Firefox:

  1. Launch Firefox.

  2. Open its Settings, then click Privacy and Security.

  3. Under Cookies and Site Data, click Clear Data... and Manage Data, and all temporary files in Firefox will be deleted.

    Clear Firefox Temporary Files

The Bottom Line

We've come to the end of this guide. Go ahead and choose your preferred method to remove temporary files from your Mac and enjoy more space for your activities.

Clare Phang has been captivated by the world of Apple products since the launch of the iconic iPhone in 2007. With a wealth of experience, Clare is your go-to source for iPhone, iPad, Mac, and all things Apple.