How to Delete Temporary Files in Windows 10?
Last Updated :
21 Apr, 2025
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.

Step 4: Check the boxes for the types of files you want to remove.
Step 5: Click “Remove files” to clear the cache.

Step 6: Click on “Continue”
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.”

Step 3: Check the box next to file you want to delete, Click “OK” at the bottom.
.png)
Step 4: A Dialogue box to confirmation will appear claiming to permanently delete files from your PC. Click "Delete Files"

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 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.
type in "temp" and press okStep 2: Now, select all temp files using ctrl + A and then press delete.
Select all and press deleteMethod 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.
Type %temp% and press OKStep 2: Now, select all local temp files using Ctrl + A and then press delete.
Select all files and press deleteMethod 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.
Type "prefetch" and press okStep 2: Now, select all prefetch files using ctrl + A and then press delete.
Select all prefetch files and press deleteFinally, 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

Step 2: Select "Clear Browsing Data".

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

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
Similar Reads
How to Open File Explorer in Windows 11?
Short Preview!Here is a short preview of our active and speedy learner. Follow these steps to open File Explorer on your Windows PC. Method 1: Simply Type "File Explorer" in the search bar.Method 2: press the "Windows key + E."File Explorer will open, allowing you to manage files and folders in Wind
4 min read
How to Automatically Delete Old Files in Windows 11?
Managing storage space efficiently is crucial for maintaining a smooth and responsive system. Windows 11 offers built-in features to help you automatically delete old files, freeing up valuable disk space without manual intervention. Whether you're looking to manage temporary files, downloads, or ot
6 min read
How to Recover Accidentally Deleted File in Windows 11?
Accidentally deleting important files on Windows 11 can be frustrating and stressful. Fortunately, there are several effective methods to recover those lost files and restore your data. Whether youâve emptied the Recycle Bin or the files were deleted permanently, this guide will walk you through the
5 min read
How to Create Primary Partitions in Windows 10?
The Windows Operating System comes with a feature where an extensive amount of memory can be stored without any hassle. To make it user-friendly, the large Windows Memory Space gets divided into some parts. These parts are known as the Windows Memory Partition. As per the need, users can create thei
5 min read
How to Open RAR Files on Windows, and Mobile?
RAR files are a popular format for compressing and archiving data, making it easier to share and store large files. However, to access the contents of a RAR file, you need to know how to extract it on your device. Whether you're using a Windows computer or a mobile device like an Android or iPhone,
4 min read
How to Extract a TAR file (.tgz) on Windows?
If you're trying to extract a TAR file on Windows, particularly a .tgz or tar.gz file, there are several ways to do it easily. Although Windows doesnât natively support extracting these files, there are plenty of TAR file extraction tools for Windows that can help you. This guide will show you how t
4 min read
How to Delete a System Restore Point on Windows 10?
System restore points are useful for reverting your Windows 10 system to a previous state in case of issues, but they can also take up valuable disk space. Deleting unnecessary system restore points can help free up space and improve system performance. In this guide, we will show you how to delete
4 min read
How to Create a Batch File in Windows?
A batch file is a straightforward text document in any version of Windows with a set of instructions meant to be run by Windows' command-line interpreter (CMD) by maintaining all the functions. Batch files are a great tool for streamlining internally configured processes, automating tedious jobs, an
5 min read
How to Disable OneDrive in Windows 11?
OneDrive is a cloud storage option that comes pre-installed in Windows 11, providing easy access to file storage and the ability to sync these files across devices. Nonetheless, not everyone requires or desires to utilize OneDrive, particularly if they opt for other cloud storage options. Removing O
4 min read
How to Forget a Network in Windows 11?
Knowing how to forget a network in Windows 11 is useful when removing previously connected Wi-Fi networks from your device. This can help in cases where you need to clear saved network settings or troubleshoot connectivity issues. In this guide, we will walk you through the steps to forget Wi-Fi in
5 min read