Open In App

How to Delete Temporary Files in Windows 10?

Last Updated : 21 Jun, 2025
Summarize
Comments
Improve
Suggest changes
Share
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 applications for short-term use but are often left behind after the task is completed. Knowing how to delete temporary files in Windows 10 is a quick and effective way to free up space and improve system performance.

In this guide, we'll explore automated and manual methods to delete temporary files safely and efficiently.

Are Temporary Files the Same as Junk Files?

  • Temporary files are created by software to temporarily store data, such as autosaves or installation files. Some of these files are useful while a task is in progress.
  • Junk files, on the other hand, refer to unnecessary or obsolete files, which may include outdated temp files, logs, or cached data no longer in use. While many temp files become junk, not all temp files are junk by default.

Why Should You Delete Temporary Files From Your PC?

Temporary files may seem harmless, but over time, they accumulate and consume valuable disk space. Regularly deleting these files not only improves your system’s performance but also protects your privacy and security.

Here are the key benefits of deleting temporary files:

  • Frees up disk space - Removes clutter and unnecessary files that consume storage.
  • Improves system speed - Speeds up your computer by reducing the load on the system.
  • Enhances privacy - Clears browsing data and activity logs, maintaining user confidentiality.
  • Reduces malware risks - Minimizes the chances of malware hiding in leftover files.
  • Prevents system errors - Helps avoid glitches or crashes caused by outdated temp files.
  • Optimizes performance - Keeps your PC running smoothly by minimizing system strain.
  • Speeds up file searches and indexing - Less clutter means faster access to needed data.

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