3 ways to safely Delete Temporary Files in Windows 10/8.1 and 7

Looking for Delete temporary files in windows 10 to Free up some significant amount of Disk Space or optimize Windows System performance? Here this post we discuss what is temp files in windows PC, Why They created on your PC and How To safely Delete Temporary Files in Windows 10.

What is temp file in Windows 10 PC?

Temporary files are usually referred to those files that apps store on your computer to hold information temporarily. However, on Windows 10 there are many other temporary file types, including those leftover files after updating the operating system, upgrade logs, error reporting, temporary Windows installation files, and more.

Typically, these files won’t cause any issues, but they can grow rapidly using valuable space on your hard drive, which can be the reason preventing you to install a new version of Windows 10 or it can be the reason that you’re running out of space.

How To safely Delete Temporary Files in Windows 10?

Most temporary files are stored in the Windows Temp folder, the location of which differs from computer to computer, and even user to user. And Cleaning these Temp files Are very easy which usually takes less than a minute. You can manually Delete These temporary files, let a new Windows 10 feature take care of it or get an app for that. Let’s Start to safely remove temp files.

Manually Delete Temporary files 

Deleting temporary files in Windows does no harm. You’re just clearing out the trash that Windows downloaded, used and doesn’t need anymore.

To find out and Delete Temporary files Press Windows key + R to open the run dialog. Type or paste ‘%temp%’ into the box and hit Enter. This should take you to C:\Users\Username\AppData\Local\Temp. This is the temp file store. (Add your own username where you see Username if you want to navigate there manually.)

windows Temporary files
windows Temporary files

Now Press Ctrl + A to select all and hit Shift + Delete To clear them permanently. You may see a message that says ‘File in use’. Feel free to select Skip and let the process complete. If you see multiple warnings, check the box that says apply to all and hit Skip.

You can also navigate to C:\Windows\Temp and delete files there too for an extra bit of space. There is also a folder in C:\Program Files (x86)\Temp if you run 64-bit Windows which can also be cleared out.

Using A Bat file
Subscribe to our newsletter
Subscribe to our newsletter

Also, you can Create A .bat file which Clear Temp files with one click. To do this open notepad and type: rd %temp% /s /q and save the file as any name with .bat extention. for example temp.bat 

Here rd (remove directory) and %temp% is the Temporary file location. The “q” parameter suppresses confirmation prompts to delete the files and folders, and “s” is for deleting all the subfolders and files in the temp folder.

Now double-click on the newly created temp.bat file to run and clean up temporary files with one click.

Using Disk Cleanup Utility

If you find you need more space, then you Can Run the disk cleanup Utility to see what else you can safely get rid of. To do this type disk cleanup on start menu search and hit the enter key. Select The System installation Drive ( usually its C Drive ) and click ok To start the cleanup process. this will scan system error, memory dump files, Temp Internet Files Etc. Also, you can perform advanced cleanup by click on Cleanup System files. Now check all boxes over 20MB and Select OK to Cleaup these Temp files.

Run Disk Cleanup
Run Disk Cleanup

This should clean up most of the easily accessible files on your hard drive. If you recently upgraded Windows or have patched, cleaning out system files could save you several gigabytes of disk space. If you have more than one hard drive, repeat the above process for each one. It takes a little while but could free up a serious amount of disk space if you haven’t done it before.

Configure Storage Sense For Automatic process 

If you use Windows 10 Creators Update there is a new setting called Storage sense which will do a lot of this for you. It was introduced in the last big update but passed a lot of people by. It is Microsoft’s attempt to make Windows a little more efficient. It will automatically delete the contents of the Temp files and Recycle bin after 30 days which will work for most users.

To Configure this process ( feature ) open Settings -> System And and then click on Storage in the left menu. Toggle Storage sense to on underneath the list of attached drives. Then click on  ‘Change how we free up space’ text link underneath. And Make sure both toggles are set to on as shown image below. From now on, Windows 10 will automatically clean out your Temp folder and the Recycle bin every 30 days.

Configure Storage Sense on windows 10
Configure Storage Sense on windows 10

Use Third-party App To Delete Temp Files

Also you can use the free Third party system optimizer like Ccleaner To Cleanup Temp files with one click. It has a free and a premium version and does everything in this post and more. CCleaner has the advantage of cleaning all of your drives at once and taking only a few seconds to do it. There are other system cleaners out there but This is the Best We recommend.


These are some easy ways to safely Delete Temporary Files in Windows 10. I hope you find this post helpful to cleanup Temporary files from Windows PC and optimize system performance. Have any query, Suggestion Feel free to discuss on comments below. Also, Read Useful Snipping Tool Shortcuts for Screenshots in Windows 10, 8.1 and 7