Open In App

How to Delete Temporary Files in Windows 10?

Last Updated : 21 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Over time, temporary files in Windows 10 can accumulate and take up valuable disk space, potentially slowing down your system. These files are usually created by various applications for short-term use, but they can linger long after they're needed. Knowing how to delete temporary files in Windows 10 is a quick and effective way to free up space and improve your computer's performance. In this article, we'll show you several methods to clear temp files safely and efficiently.

Are Temporary Files the Same as Junk Files?

Temporary files are created by programs to store information temporarily. Temporary files speed up tasks by storing data temporarily. For example, while working on a document, a temporary file may be created to save the changes made, reducing the time it takes for processes to complete.

However, not all temporary files become junk. Junk files are unnecessary, or unused files that gather over time, and they may include temporary files. Therefore, while some temporary files may become junk, not all temporary files are considered junk.

Why Should You Delete Temporary Files From Your PC?

Deleting temporary files from your PC is important for several reasons. First, it frees up space on your computer systems, helping your computer run faster. It also maintains your online privacy by removing traces of your activities. Deleting temporary files can improve system performance and prevent potential errors. Moreover, it reduces the risk of malware hiding in these files. In short, advantages include increased storage, enhanced privacy, improved speed, error prevention, and better protection against malware.

How to Delete Temporary Files in Windows 10?

Deleting temporary files ensures that your system doesn't hang due to unnecessary space occupied by temporary files in your system. So delete these temp files and keep your system cool. Here we have segregated the methods of deleting temp files into automated and manual methods. So go ahead and try these methods and improve your PC's performance now.

Automated Methods

These methods involve system configuration changes that remove temp files from your Windows regularly. Once you make these changes, your system will delete these temp files periodically when accumulated over time.

Method 1: Delete Temporary Files in Windows Using System Settings

Step 1: Open Settings by pressing Win + I.

Step 2: Go to System > Storage.

Step 3: Now click on “Temporary files", under the “Local Disk (C:)” section.

Lightbox

Step 4: Check the boxes for the types of files you want to remove.

Step 5: Click “Remove files” to clear the cache.

method-1-delete-temporary-files-using-system-settings

Step 6: Click on “Continue

Method 2: Delete Temporary Files in Windows Using Disk Cleanup Tool

Microsoft has included disk cleanup as a part of your Windows 10 that will enable you to get rid of temporary and cached files from your PC.

Step 1: Type “Disk Cleanup” in the search bar.

Step 2: Now select the drive you want to clean up and click “OK.”

method-2:-delete-temporary-files-using-disk-cleanup-tool

Step 3: Check the box next to file you want to delete, Click “OK” at the bottom.

method-2:-delete-temporary-files-using-disk-cleanup-tool

Step 4: A Dialogue box to confirmation will appear claiming to permanently delete files from your PC. Click "Delete Files"

method-2:-delete-temporary-files-using-disk-cleanup-tool

Alternatively, you can perform Disk Cleanup Using Powershell Scripts  to delete temp files or recycle bin data

Manual Methods

Unlike automated methods these methods don't remove temp files on regular basis. Manual methods are performed explicitly. Here we have provided four different methods to delete temp files from your Windows PC.

Method 1: Delete Temporary Files in Windows Using CMD

To delete the temporary files from the command prompt:

del /q/f/s %TEMP%\*
method-1-delete-temporary-files-using-cmd

Method 2: Delete All Temp Files Using Run Command

To delete all the temporary files follow these simple steps:

Step 1: Press the Windows key + R to open the Run command. Then type "temp" in the search field and press OK

method-2-delete-all-temp-files-using-run-command
type in "temp" and press ok

Step 2: Now, select all temp files using ctrl + A and then press delete.

method-2-delete-all-temp-files-using-run-command
Select all and press delete

Method 3: Delete local Temp Files Using Run Command

There are some local temporary files into your system, you can delete these specific files using following steps:

Step 1: Press the Windows key + R  to open the Run command. Then type "%temp%" in the search field and press OK

method-3:-delete-local-temp-files-using-run-command
Type %temp% and press OK

Step 2: Now, select all local temp files using Ctrl + A and then press delete.

method-3:-delete-local-temp-files-using-run-command
Select all files and press delete

Method 4: Delete Local Temp Files Using Prefetch

To delete the local temporary files using Prefetch follow the below steps:

Step 1: Press Windows key + R  to open the Run command. Then type "Prefetch" in the search field and press OK.

method-4:-delete-local-temp-files-using-prefetch
Type "prefetch" and press ok

Step 2: Now, select all prefetch files using ctrl + A and then press delete.

method-4:-delete-local-temp-files-using-prefetch
Select all prefetch files and press delete

Finally, delete all the files from recycle bin too. All temporary files are deleted, and now you are good to go!!

Delete Hidden Temporary Files by Cleaning Up Browser Cache

Temporary files are generated in various segments of application programs. Even after deleting all visible temporary files, browser cache often remains unnoticed. Is it important to clear browser cache? The answer is yes! It's essential to regularly clear these hidden files as they occupy significant space in your system. So don't overlook the browser cache; cleaning it helps maintain system performance by freeing up storage space and ensuring a smoother experience. Regularly cleaning up browsers cache helps to speed up internet browsing speed.

There are different Browser Cache Stored in Your System like stored data from websites, like images, pages, your saved passwords and other browsing activities are stored to speed up future visits. These Cached data are stored in specific folders on your system.

Delete Browser Cache from Windows 10

Step 1: Open your browser and Go to Settings > Privacy and security

Delete-Browser-Cache_1

Step 2: Select "Clear Browsing Data".

Delete-Browser-Cache_3

Step 3: Check the box as per your preference and hit "Clear Data" to remove the cache.

Delete-Browser-Cache_2

Regularly clearing browser cache helps maintain privacy and ensures updated content.

Alternatively, you can clear your Browser Cache using run command

Conclusion

Regularly deleting temporary files in Windows 10 is an important maintenance task that can help keep your system running smoothly. Whether you use the built-in Disk Cleanup tool, manually delete files from the Temp folder, or automate the process with Storage Sense, these methods will ensure that your system remains clutter-free. By following the steps outlined in this guide, you can easily clear temp files in Windows 10 and enjoy a more responsive computer.

Also Read


Practice Tags :

Similar Reads