This article was co-authored by wikiHow staff writer, Travis Boylls. Travis has been a tech writer at wikiHow for more than 10 years. He has also worked in technical support for Dish Network and AT&T Wireless. He studied graphic design and web design at Pikes Peak Community College. He specializes in Windows, macOS, Linux, Android, iOS, and video game consoles. Travis has had a fascination with computers and technology that goes all the way back to childhood. He is proficient in all manner of software and computer operating systems.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 349,661 times.
Learn more...
Windows 10 creates temporary files while you use certain apps to speed up certain processes. However, your PC can create hundreds of temporary files in a day, which takes up hard drive space and can even slow down your computer. This wikiHow will show you how to clear temporary files from your Windows 10 PC and answer some common questions about temporary files on Windows.
Quick Steps
- Search "Disk Cleanup" in the Windows search bar.
- Open the Disk Cleanup app,
- Select the drive you want to clean and click Ok.
- Check "Temporary Files" and Temporary Internet Files."
- Click Ok.
- Click Delete Files.
Steps
Using Disk Cleanup
-
Open Disk Cleanup on your Windows PC. The easiest way to clean up temporary files on your Windows 10 or 11 computer is to use the Disk Cleanup app. Use the following steps to open it:[1]
- Press the Windows key and type disk cleanup.
- Click Disk Cleanup in the search results.
-
Select the drive you want to clean and click OK. The drive you use the most will have the most temporary files. In most cases, this will be the "C:" drive.
- If you aren't given the option to select a disk, you probably only have one disk drive on your computer.
Advertisement -
Select the file types you want to delete and click OK. Suggested boxes to delete are selected by default. Ensure the boxes next to "Temporary Internet Files" and "Temporary Files" are checked, then click OK.[2]
- You’ll see how much space they will free up below the right side of the columns.
-
Click Delete Files. This confirms that you want to delete the files permanently. The files will be promptly removed from your computer.
- For more tips on speeding up your device, check out our guides on how to speed up a slow Windows computer for free and fix common issues slowing down your computer.
Using Storage Settings
-
Navigate to the storage settings. To get there, click System, and then click Storage.[3]
-
Click the drive where Windows is installed. It usually has a Windows logo over the drive icon and might be called “This PC” or "OS C:".
-
Click Temporary Files. The number here represents how much space the temporary files are taking up. The next page shows you all the files that are considered temporary files, including files in the Downloads folder, files in the Recycle Bin, and thumbnails.[4]
-
Click to check the boxes next to the files you want to delete. Ensure the boxes next to "Temporary Files" and "Temporary Internet Files" are selected.
-
Click Remove files. It's at the top of the page above the checkboxes.[5]
-
Click Continue. This confirms you want to remove the files and starts deleting them. You’ll see a progress bar of the deletion process.
-
Turn on Storage Sense (optional). While you're in the Storage Settings menu, make sure the toggle switch next to "Storage Sense" is on if you want to clean out your temporary files automatically when your disk space is low. It will also empty the Recycle Bin automatically.[6]
- If you click Storage Sense in the Settings menu, you can set how often you want your computer to delete your temporary files and empty the Recycle Bin automatically. By default, it will only delete your temporary files when your storage space is low and empty the Recycle Bin once every 30 days.
Using the Command Prompt
-
Open the Command Prompt. The Command Prompt is the Windows command-line Interface that allows you to perform Windows operations using text commands. You can easily clear temp files with a quick Command Prompt command. To get started:[7]
- Click the WIndows Start button.
- Type CMD.
- Click Command Prompt.
-
Type del /q/f/s %TEMP%\* and press ↵ Enter. This command will delete all your temporary files.
Using the Run Dialog
-
Press ⊞ Win+R to open the Run box. This is the most involved method of clearing your temporary files, as you'll be clearing the files manually.
-
Type %temp% in the Run box and press ↵ Enter. You’ll be directed to the folder that contains all the temporary files.
-
Select all files and folders. To do so, press Ctrl + A to select all files at once. This will highlight all the folders.
-
Press the Del key. This will move all the temporary files to the Recycle Bin.
- If you need to free up storage space, empty the Recycle Bin. To do so, right-click the Recycle Bin on your desktop and click Empty Recycle Bin.
- If Storage Sense is turned on, Windows will empty the Recycle Bin automatically every 30 days.
- All those files are moved into the Recycle Bin and can be restored if needed. To restore the files, open the Recycle Bin and click Restore all items at the top.
- For more Windows file management, check out our guide on finding hidden files and folders.
Expert Q&A
Video
Tips
References
- ↑ https://www.computerhope.com/jargon/d/diskclea.htm
- ↑ https://support.microsoft.com/en-us/windows/free-up-drive-space-in-windows-85529ccb-c365-490d-b548-831022bc9b32
- ↑ https://www.geeksforgeeks.org/how-to-delete-temporary-files-in-windows-10/
- ↑ https://www.geeksforgeeks.org/how-to-delete-temporary-files-in-windows-10/
- ↑ https://www.geeksforgeeks.org/how-to-delete-temporary-files-in-windows-10/
- ↑ https://www.cu.edu/blog/tech-tips/improve-laptop-performance-deleting-temporary-files
- ↑ https://www.geeksforgeeks.org/how-to-delete-temporary-files-in-windows-10/
About This Article
1. Open Disk Cleanup.
2. Click to check the boxes next to Temporary Internet Files and Temporary Files.
3. Click OK.