Windows 11 creates temporary files while installing updates, running applications, browsing the internet, and performing different system tasks. These files are normally removed automatically, but some can remain on the drive and gradually consume storage space.
Deleting unnecessary temporary files can free up disk space and can sometimes help when Windows is running low on storage. Windows 11 includes several built-in ways to remove temporary files, including Settings, Disk Cleanup, Storage Sense, and File Explorer.
Before deleting anything, remember that some temporary files may be used by applications or Windows processes. Close your applications first and avoid manually deleting files from folders that you do not recognize.
Method 1: Delete Temporary Files From Settings
Windows 11 provides a simple way to review and remove temporary files through Storage settings.
- Press Windows + I to open Settings.
- Select System.
- Select Storage.
- Select Temporary files.
- Wait while Windows calculates the available temporary files.
- Review the categories displayed.
- Select the temporary file categories you want to remove.
- Select Remove files.
- Confirm the removal if Windows asks you to.
Windows may list several categories, including temporary files, thumbnails, delivery optimization files, and other unnecessary data.
Read the descriptions before selecting a category. Some categories can contain files that you may still need.
Method 2: Use Storage Sense to Automatically Remove Temporary Files
Storage Sense can automatically clean unnecessary files when your computer needs additional storage.
To configure it:
- Open Settings.
- Select System.
- Select Storage.
- Turn on Storage Sense.
- Select Storage Sense to configure its options.
You can choose when Windows should run Storage Sense and configure how temporary files and other unnecessary data are handled.
This is useful if you frequently run out of storage space and do not want to manually clean temporary files every time.
Storage Sense is especially helpful on laptops and computers with smaller SSDs.
Method 3: Delete Temporary Files With Disk Cleanup
Disk Cleanup is a traditional Windows utility that can remove temporary and other unnecessary system files.
To use it:
- Press Windows + S.
- Search for Disk Cleanup.
- Open Disk Cleanup.
- Select the Windows system drive, usually C:.
- Select OK.
- Wait while Windows calculates how much space can be recovered.
- Select the categories you want to remove.
- Select OK.
- Select Delete Files when prompted.
Disk Cleanup can display more cleanup categories after you select Clean up system files.
If you select this option, Windows will calculate the available system-level cleanup again.
Review the categories before deleting them, particularly if you are cleaning up Windows Update files or previous Windows installation files.
Method 4: Delete Files From the Windows Temp Folder
Windows also maintains a temporary folder that can contain files created by applications and system processes.
To open the current user’s temporary folder:
- Press Windows + R.
- Type:
%temp%
- Press Enter.
- Select the files and folders you want to remove.
- Press Delete.
Some files may be in use by Windows or another application.
If Windows displays a message saying a file cannot be deleted, select Skip rather than forcing the deletion.
You do not need to delete files that Windows reports as currently being used.
Method 5: Delete Temporary Files Using the Temp Command
You can also open the Windows temporary folder directly through the Run dialog.
- Press Windows + R.
- Type:
temp
- Press Enter.
Depending on your Windows configuration, this opens a temporary folder.
Select unnecessary files and folders and press Delete.
If Windows asks for administrator permission, provide it only if you are sure you are deleting the intended temporary files.
If certain files cannot be deleted because they are being used, leave them alone.
Method 6: Use Command Prompt to Clean Temporary Files
Advanced users can remove temporary files using Command Prompt.
First, close applications that may be using temporary files.
Then:
- Open Start.
- Search for Command Prompt.
- Select Run as administrator.
- Use appropriate commands to remove temporary files.
For example, you can use:
del /q /f /s "%TEMP%\*"
Some files may not be deleted because they are currently in use.
You may see messages for files that cannot be accessed. This is normal and does not necessarily indicate a problem.
Be careful when using commands involving del. Do not change the path to an unknown folder or use a broad deletion command unless you fully understand which files it will remove.
For most users, the Settings or Disk Cleanup methods are safer and easier.
Method 7: Delete Temporary Internet and Application Files
Applications can also create temporary files and cached data.
For example, web browsers maintain cached images, website files, cookies, and other browsing data.
If you want to clean browser-related temporary data, use the browser’s own settings rather than manually deleting random folders.
For Microsoft Edge:
- Open Edge.
- Open Settings.
- Go to the privacy and browsing-data settings.
- Choose the types of browsing data you want to remove.
- Confirm the cleanup.
Other browsers provide similar controls.
Application caches can also be useful because they allow programs to load frequently used information faster. Therefore, do not delete application data simply because it occupies storage unless you understand what the data contains.
Method 8: Remove Temporary Files After a Windows Update
Large Windows updates can leave behind temporary installation files.
If Windows has successfully completed an update and you need additional storage, check:
Settings > System > Storage > Temporary files
Review the available categories.
Windows may identify files associated with previous installations or update cleanup.
If everything is working correctly and you no longer need the previous installation or recovery files, Windows may allow some of this data to be removed.
Be careful with previous Windows installation files. They can be useful for returning to an earlier Windows version, so do not remove them if you still need that recovery option.
How Much Space Can Temporary Files Free?
The amount of space varies from computer to computer.
A system that has recently installed a large Windows update may have several gigabytes of temporary or update-related files.
Another computer may have only a small amount of temporary data.
Windows Storage settings show the amount of space associated with the categories it identifies, allowing you to decide what to remove.
Is It Safe to Delete Temporary Files?
Generally, Windows’ built-in cleanup tools are designed to identify files that can be removed.
However, not every temporary file can or should be deleted manually.
Some files may currently be in use. Windows will normally prevent their deletion or report that another application is using them.
If a file cannot be deleted, simply leave it in place.
Should You Delete the Windows Temp Folder Regularly?
You do not need to manually clean the Temp folder every day.
Windows and applications regularly create and remove temporary files automatically.
Storage Sense can automate much of the cleanup process, while the Settings storage page lets you manually review temporary files when you need more free space.
What If Temporary Files Keep Coming Back?
Temporary files are normal in Windows 11, so some files will always be recreated.
Applications use temporary storage for tasks such as installations, updates, caching, and data processing.
The goal is not to permanently eliminate the Temp folder. Instead, remove unnecessary files when storage space becomes limited.
If the amount of temporary data grows unusually quickly, check Windows Update, recently installed applications, browser caches, and applications that generate large temporary files.
Conclusion
Windows 11 provides several ways to delete temporary files and recover storage space. The easiest option is Settings > System > Storage > Temporary files, where Windows identifies different categories of removable data.
Storage Sense can automate cleanup, while Disk Cleanup provides another useful built-in option. Advanced users can also open the Temp folders manually or use Command Prompt, but these methods require more care because some temporary files may be actively used by Windows or applications.
You do not need to delete every temporary file manually. Some temporary data is necessary for normal operation and will be recreated automatically. If Windows reports that a file is currently being used, skip it rather than forcing its removal.
For regular maintenance, Storage Sense is a convenient option because it can automatically manage unnecessary temporary data without requiring you to repeatedly clean the system manually.
FAQs
1. How do I delete temporary files in Windows 11?
Go to Settings > System > Storage > Temporary files, select the categories you want to remove, and select Remove files.
2. Can I delete everything in the Temp folder?
You can remove temporary files that are no longer being used, but some files may currently be in use. If Windows refuses to delete a file, select Skip and leave it alone.
3. Does deleting temporary files improve Windows 11 performance?
It can free storage space, particularly when the drive is nearly full. However, deleting temporary files does not automatically make every computer significantly faster.
4. How often should I delete temporary files?
There is no fixed schedule. Windows automatically manages many temporary files. You can use Storage Sense to automate cleanup or manually remove temporary files when your storage space becomes low.
Quick Summary
- Use Settings > System > Storage > Temporary files for the easiest cleanup.
- Enable Storage Sense for automatic temporary-file management.
- Disk Cleanup can remove additional unnecessary system files.
- Skip temporary files that Windows says are currently being used.





