How to Delete Temporary Files and Delete Prefetch Files from Your Computer

Download Article
Delete prefetch and temporary files from your computer with this easy-to-follow guide
Download Article

This How.com.vn teaches you how to safely delete temporary and unneeded files from Windows to free up disk space. Windows creates all sorts of temporary files on your hard drive. Although these files aren't harmful, they may be hogging up precious hard drive space. You can also delete Prefetch files, which are created by the operating system each time an app is launched for the first time. These files are designed to make apps open faster and don't use too much disk space, but if you're running low, you can delete them without causing any problems.

Is it safe to delete prefetch files?

Yes, it's safe to delete prefetch files. To do so, open up the Run dialog (Win + R) and type in "prefetch." In the following window, enable the option that shows any hidden files and folders. Select all the files by hitting Ctrl + A, and then hit the Delete key to remove them.

Method 1
Method 1 of 2:

Deleting Temporary Files with Disk Cleanup

Download Article
  1. How.com.vn English: Step 1 Open Disk Cleanup on your PC.
    The quickest way to do this is to type disk cleanup in the Windows search bar and then click Disk Cleanup in the search results.[1]
  2. How.com.vn English: Step 2 Click the Clean up system files button.
    It's near the bottom-left corner of the dialog window. After Windows scans your primary hard drive (which is where your temp files are stored), a new window will appear.[2]
    • You may have to enter your administrator password to continue.
    Advertisement
  3. How.com.vn English: Step 3 Select files to delete.
    Windows creates many types of temporary files. Click each type to see a description before selecting or deselecting an option. The amount of hard drive space consumed by each file type appears alongside it.[3]
    • Make sure to remove the checkmarks next to any type of file you do not want to delete. For example, if you download files from the internet to your Downloads folder and keep them there, you'll definitely want to remove the checkmark from "Downloads."
    • One folder that takes up a lot of space is "Windows Update Cleanup," which contains compressed versions of every Windows Update that's ever been installed. There's no reason to keep those forever, so if you're looking for a quick way to gain hard drive space, check that option.
  4. How.com.vn English: Step 4 Click OK to delete all selected files.
    This part might take a while if you're deleting several GB of files. Once the files are deleted, you'll have regained all the space they once consumed.[4]
  5. Advertisement
Method 2
Method 2 of 2:

Deleting Prefetch Files

Download Article
  1. How.com.vn English: Step 1 Press ⊞ Win+R to open the Run dialog.
    Another way to open the Run dialog is to type run into the Windows search bar and click Run in the results.
    • Prefetch files are automatically created to speed up the launch of certain applications and don't usually take up much space on your drive. There's no real reason to delete these files unless you need to free up a small amount of space.
  2. Step 2 Type prefetch into the "Run" box and press ↵ Enter.
    This opens the Prefetch folder in the File Explorer.[5]
    • Depending on your security settings, you may need to enter your admin password or confirm the action before you see the folder contents.
  3. How.com.vn English: Step 3 Enable the option to display hidden files and folders.
    If you see a list of files in the Prefetch folder just skip to the next step. If the folder appears empty or you get an error that says you can't open it, follow these steps:[6]
    • If you were unable to open the folder with the Run dialog, press the Windows Key + E to open the File Explorer.
    • Click the View tab at the top of the File Explorer.
      • If you're using Windows 7 or earlier, click Organize instead.
    • Click the Options button near the top-right corner.
      • Windows 7 and earlier: Click Folder and search options instead.
    • Click the View tab on the Folder Options window.
    • Select Show hidden files, folders, and drives.[7]
    • Click OK to close the window.
  4. How.com.vn English: Step 4 Press Ctrl+A to select all Prefetch files.
    This should highlight all of the files in the folder in the right panel. If not, click a blank area of the folder first to activate the panel.[8]
  5. How.com.vn English: Step 5 Press the Del key.
    This deletes the selected files from the folder.[9]
    • If any of the files you try to delete are in use, you'll see an error that tells you it can't be deleted. Just click Skip on such messages—you won't be able to delete these files until you close whichever apps are using them.
    • The files will not be permanently deleted until you empty your Recycle Bin. You can do this by opening Recycle Bin and clicking Empty Recycle Bin at the top-left.
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Deleting Prefetch files was easy in XP; it was removed using the "search" function only. Why has it become complicated in Windows 7?
    How.com.vn English: Community Answer
    Community Answer
    Press the home button+r, or type "run" in search and open it. Then type "prefetch" and press enter; a dialogue box will pop up. Simply press "continue" and delete all the files from the folder.
  • Question
    Does this deletion work for Windows 10?
    How.com.vn English: Community Answer
    Community Answer
    Yes, these steps will work in Windows 10.
  • Question
    Is there any other way of making your computer fast?
    How.com.vn English: Denneisk
    Denneisk
    Top Answerer
    Without modifying the internal components of your PC, the most you can do is to shut down unimportant processes from Task Manager and defragment your hard drive (if it is an HDD). A technical solution would be to overclock your computer parts, but this is advanced and not recommended if you don't know the parts in your computer.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • Empty the Recycle Bin when you are done to permanently delete the files.
      • Deleting prefetch files can low down your computer. It is usually best to avoid doing so unless you really know what you are doing.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Nicole Levine, MFA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for How.com.vn. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 459,375 times.
      How helpful is this?
      Co-authors: 9
      Updated: March 29, 2024
      Views: 459,375
      Article SummaryX

      1.Open Disk Cleanup.
      2.Click Clean up system files.
      3.Select which files to delete.
      4.Click OK.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 459,375 times.

      Reader Success Stories

      • How.com.vn English: Vikram Ranak

        Vikram Ranak

        Jul 31, 2017

        "Yes, it solved my problem."
        Rated this article:
      Share your story

      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