This wikiHow teaches you how to safely delete temporary and prefetch 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?
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.
Steps
-
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] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
-
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] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
- When prompted, click Yes to continue.
Advertisement -
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] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
- 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 a compressed version of the last few Windows Updates you installed, just in case you need to roll back an update. If you don't think you'll need to uninstall an update, selecting this option (if available) is a good way to gain hard drive space.
-
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] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
-
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.
- Not all computers save prefetch files. If you're using a newer version of Windows and have an SSD, prefetch is likely disabled, and there may not be prefetch files to delete.
-
Type prefetch into the "Run" box and press ↵ Enter . This opens the Prefetch folder in the File Explorer.
- Depending on your security settings, you may need to click Continue to access this read-only folder.
- If nothing happens when you run this command, open File Explorer manually by pressing Windows key + E (or by selecting File Explorer from the Windows menu), then navigate to C:\Windows\Prefetch.
-
Enable the option to display hidden files and folders. If you see a list of files in the Prefetch folder, 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:
- On Windows 11, click the View tab at the top of File Explorer and select Show > Hidden items .
- On Windows 10 and 8, click the View menu in File Explorer, select Options , then click Change folder and search options . On the View tab, select "Show hidden files, folders, and drives," and click OK . [5] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
- On Windows 7 and earlier, click Organize in File Explorer, select Folder and search options , click the View tab, and select "Show hidden files, folders, and drives." Click OK to close the window.
-
Press Ctrl + A to select all Prefetch files. This should highlight all files in the folder in the right panel. If not, click a blank area of the folder first to activate the panel.
-
Press the Del key. This deletes the selected files from the folder.
- 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.
-
1Open Command Prompt as an administrator. An easy way to do this is to type cmd into the Windows Search bar, right-click Command Prompt , and select Run as administrator .
-
2Type command to delete prefetch files. At the prompt, type del C:\Windows\prefetch\*.*/s/q and press Enter . This deletes everything in the Windows Prefetch folder.
Community Q&A
-
QuestionDeleting Prefetch files was easy in XP; it was removed using the "search" function only. Why has it become complicated in Windows 7?Community AnswerPress 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.
-
QuestionDoes this deletion work for Windows 10?Community AnswerYes, these steps will work in Windows 10.
-
QuestionIs there any other way of making your computer fast?DenneiskTop AnswererWithout 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.
Video
Tips
- Deleting prefetch files is safe, but because prefetch files are created to speed up apps the next time you run them, it can, theoretically, slow down your computer. [6] X Trustworthy Source Science Direct Online archive of peer-reviewed research on scientific, technical and medical topics Go to sourceThanks
- Empty the Recycle Bin when you are done to delete the files permanently.Thanks
References
- ↑ https://support.microsoft.com/en-us/windows/disk-cleanup-in-windows-8a96ff42-5751-39ad-23d6-434b4d5b9a68
- ↑ https://support.microsoft.com/en-us/windows/disk-cleanup-in-windows-8a96ff42-5751-39ad-23d6-434b4d5b9a68
- ↑ https://support.microsoft.com/en-us/windows/disk-cleanup-in-windows-8a96ff42-5751-39ad-23d6-434b4d5b9a68
- ↑ https://support.microsoft.com/en-us/windows/disk-cleanup-in-windows-8a96ff42-5751-39ad-23d6-434b4d5b9a68
- ↑ https://support.microsoft.com/en-us/windows/view-hidden-files-and-folders-in-windows-97fbc472-c603-9d90-91d0-1166d1d9f4b5#WindowsVersion=Windows_10
- ↑ https://www.sciencedirect.com/topics/computer-science/prefetch
About This Article
1. Open Disk Cleanup
.
2. Click Clean up system files
.
3. Select which files to delete.
4. Click OK
.