Free up disk space & speed up your PC by deleting temporary files
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
Section 1 of 5:
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:
- 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 . [1] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
- You’ll see how much space they will free up below the right side of the columns.
-
4Click 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.
Advertisement
Section 2 of 5:
Using Storage Settings
-
2Navigate to the storage settings. To get there, click System , and then click Storage .
-
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.
-
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.
-
7Click Continue . This confirms you want to remove the files and starts deleting them. You’ll see a progress bar of the deletion process.
-
8Turn 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.
- 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.
Advertisement
Section 3 of 5:
Using the Command Prompt
-
1Open 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:
- Click the WIndows Start button.
- Type CMD .
- Click Command Prompt .
-
2Type del /q/f/s %TEMP%\* and press ↵ Enter . This command will delete all your temporary files.
Advertisement
Section 4 of 5:
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.
-
4Press 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 .
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
Video
Tips
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
About This Article
Article Summary
X
1. Open Disk Cleanup
.
2. Click to check the boxes next to Temporary Internet Files
and Temporary Files
.
3. Click OK
.
Did this summary help you?
Thanks to all authors for creating a page that has been read 345,444 times.
Advertisement