Did this article
help you?

This helped me

How to Rid Your Computer of Temporary Files

Temporary files are created as safeguards against errors, accidental shut-downs, and other interruptions amidst running programs. While these files help you quickly recover your information, they also take up random access memory (RAM), which can cause your computer to run slower than normal. You can clear your temporary files cache on PC by using Disk Cleanup or by deleting the temporary folder contents; you can also clear a Mac's temporary files by manually emptying the Cache folder and clearing Safari's data cache.

Method 1
Method 1 of 4:

Deleting Temporary Cache Files (Mac)

  1. Step 1 Click the "Finder" icon to open the Finder.
    Mac's search app, the Finder, resembles a blue face.
  2. Step 2 Click the "Go" tap at the top of your screen.
    This should be to the right of the "Edit" tab.
    Advertisement
  3. Step 3 Click "Go to Folder".
    This should be toward the bottom of the "Go" menu. Doing so will prompt you to enter a destination.
  4. Step 4 Type "~/Library/Caches" into the text field.
    Exclude the quotation marks. The "Caches" folder is where your Mac's temporary files are stored.
    • Click "Go" when you're finished.
    • If you want to clear all temporary files on your Mac, you should also delete the contents of "~/Library/Logs" when you finish deleting the Cache folder contents.
  5. How.com.vn English: Step 5 Review the contents of the Cache folder.
    Since everything here is a temporary copy, you can delete these files without repercussions.
  6. How.com.vn English: Step 6 Select a folder, then hold ⌘ Command and tap A.
    This will select your Cache folder's contents.
  7. How.com.vn English: Step 7 Hold Ctrl and click a file.
    This prompts a menu.
    • If your Mac's mouse has right-click functionality, just right-click (or two-finger click) the file.
  8. Step 8 Click "Move to Trash".
    This will delete your Mac's temporary file cache!
    Advertisement
Method 2
Method 2 of 4:

Deleting Temporary Safari Files (Mac)

  1. How.com.vn English: Step 1 Open Safari.
    If you're experiencing refresh issues or webpage loading errors on Safari, you can clear the data cache without deleting your saved passwords, cookies, or history. You'll have to open Safari, which resembles a blue compass, to do so.
  2. Step 2 Click the "Safari" option in the top left corner of your screen.
    This will bring up the Safari menu.
  3. Step 3 Click the "Empty Cache" option.
    Safari will prompt you to confirm your decision.
  4. Step 4 Click "Empty".
    This will confirm your decision and empty your Safari cache. You may have to restart Safari to notice a difference in browsing speed.
    Advertisement
Method 3
Method 3 of 4:

Deleting Temporary Files with Disk Cleanup (PC)

  1. How.com.vn English: Step 1 Open your PC's "Run" app.
    You'll used Run to access the Disk Cleanup utility. Depending on your operating system version, there are a couple of ways to open Run:
    • Hold down the Win key and tap R. This should work on all versions of Windows.
    • For Windows 8 or 10, hold down the Win key and tap X to open user task menu, then tap or click "Run" near the bottom of the menu.
  2. Step 2 Type "cleanmgr" into the Run text field.
    Exclude the quotations. This command will start the Disk Cleanup program.
    • Click "OK" or tap Enter to run your command.
  3. How.com.vn English: Step 3 Wait for Disk Cleanup to assess your temporary files.
    Depending on how long it has been since your last temporary file flush, this may take a few minutes.
  4. How.com.vn English: Step 4 Select your temporary files for deletion when prompted.
    Do this by clicking the check box next to each file type you wish to delete.
    • As a general rule, you can clear every file type; however, leave the "Compress old files" option alone, since it can cause issues when trying to retrieve old files.
    • You can also click the "Clean up system files" option, which will cause Disk Cleanup to reassess your temporary files while considering system files. This will usually free up significantly more space than clearing the default temporary files will.
  5. Step 5 Click "Delete Files" when prompted.
    This will begin the temporary file flush.
  6. How.com.vn English: Step 6 Wait for Disk Cleanup to finish deleting your temporary files.
    You may have to reboot your computer to see a change in performance.
    Advertisement
Method 4
Method 4 of 4:

Deleting Temporary Files Manually (PC)

  1. How.com.vn English: Step 1 Open your PC's "Run" app.
    You'll use Run to open the temporary files folder on your computer. You can open Run by opening the user task menu with Win and X on Windows 8 and 10, or you can hold the Win key and tap R.
  2. Step 2 Type "%temp%" into the Run text field.
    Exclude the quotations. This command will open the physical temporary files folder.[1]
    • Click OK or tap Enter to run this command.
  3. How.com.vn English: Step 3 Review the %temp% folder contents.
    Since the files in here are temporary copies, you can delete all of them without worrying about losing information.
    • Keep in mind that you won't be able to delete any temp files currently in use. To counter this, save your work and close all programs before continuing.
  4. How.com.vn English: Step 4 Select a file, then hold Ctrl and tap A.
    This will select the contents of your temporary folder.
  5. How.com.vn English: Step 5 Tap the Delete button.
    This will delete your temporary folder's contents. Alternatively, you can right-click a file and click "Delete".
    • Windows may ask you for confirmation of your choice to delete these files. If so, click "Confirm" on the pop-up window.
    Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

      Advertisement

      Tips

      • You can also get rid of your browser's temporary files by flushing your DNS cache.
      Advertisement

      Warnings

      • Deleting your temporary files is not a guaranteed way to speed up your computer.
      Advertisement

      Expert Interview

      Thanks for reading our article! If you’d like to learn more about computer tricks, check out our in-depth interview with Luigi Oppido.

      About this article

      How.com.vn English: Luigi Oppido
      Written by:
      Computer & Tech Specialist
      This article was written by Luigi Oppido and by How.com.vn staff writer, Jack Lloyd. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 82,352 times.
      How helpful is this?
      Co-authors: 25
      Updated: May 11, 2023
      Views: 82,352
      Thanks to all authors for creating a page that has been read 82,352 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement