If your Windows 11 PC is running low on storage, deleting unnecessary temporary files can be a simple way to reclaim disk space. Windows and the applications you use create temporary files for many different tasks, such as installing software, processing documents, storing cached information, and completing system operations.
Over time, some of these files may remain on your computer even after they are no longer needed. That is why learning how to delete temp files in Windows 11 can be useful when you are trying to free up storage or clean up your PC.
The good news is that Windows 11 includes several built-in tools for removing temporary files. You can use the Settings app, Disk Cleanup, Storage Sense, File Explorer, or certain command-line methods.
In this guide, we’ll explain each method step by step, tell you which temporary files are generally safe to remove, and show you what to do if Windows refuses to delete some files.
What Are Temporary Files in Windows 11?
Temporary files are files created by Windows and applications while performing various tasks.
For example, a program might create a temporary file while you are editing a document. Windows may also create temporary files during software installations, updates, or system operations.
Common temporary data can include:
- Application temporary files
- Windows temporary files
- Installation leftovers
- Thumbnail cache
- Delivery Optimization files
- Temporary internet or application cache
- Error-reporting files
- Windows upgrade leftovers
Some temporary files are automatically removed by Windows. Others can remain until a cleanup process removes them.
Think of temporary files like scratch paper on a desk. You need some of it while working, but once the task is finished, old sheets can simply take up space.
Why Should You Delete Temp Files?
Deleting unnecessary temporary files can help free storage space.
It can also make it easier to manage a drive that is getting close to full.
You might want to clean temporary files when:
- Your C: drive is nearly full.
- Windows reports low disk space.
- You have accumulated a large amount of temporary data.
- An application has created excessive cache files.
- You are preparing an older PC for new software.
- Windows Update has left behind unnecessary installation files.
However, deleting temporary files is not a guaranteed way to dramatically speed up Windows 11. Storage cleanup can be helpful, but slow performance can have many other causes.
Is It Safe to Delete Temporary Files in Windows 11?
Generally, yes—temporary files identified by Windows’ built-in cleanup tools are intended to be removable.
However, you may encounter files that are currently being used by Windows or an application.
If Windows says a file cannot be deleted because it is in use, don’t force the deletion.
Simply skip that file and continue.
Windows can recreate many temporary files when they are needed.
What Is the Easiest Way to Delete Temp Files in Windows 11?
The easiest method is through the Windows 11 Settings app.
You don’t need to manually search through hidden folders.
Step 1: Open Settings
Press:
Windows + I
Step 2: Open Storage
Select:
System → Storage
Windows will analyze your storage usage.
Step 3: Select Temporary Files
Click Temporary files.
Windows will display categories of files that can potentially be removed.
Step 4: Review the Categories
You may see items such as:
- Temporary files
- Thumbnails
- Delivery Optimization Files
- DirectX Shader Cache
- Windows error reporting files
- Recycle Bin
- Downloads
Not every PC will display exactly the same categories.
Step 5: Select What You Want to Remove
Check the categories you are comfortable deleting.
Be particularly careful with Downloads. If you select it, files in your Downloads folder may be removed.
Step 6: Click Remove Files
Review your selection carefully.
Then select:
Remove files
Windows will begin the cleanup process.
How to Delete Temp Files Using Storage Sense
Windows 11 includes Storage Sense, an automatic storage-management feature.
Instead of manually cleaning temporary files every time, Storage Sense can periodically remove unnecessary data.
Enable Storage Sense
- Open Settings.
- Select System.
- Choose Storage.
- Find Storage Sense.
- Turn it on.
You can also open Storage Sense to review its configuration.
Configure Storage Sense
Depending on your Windows version, available options can include cleaning:
- Temporary files
- Recycle Bin contents
- Cloud-backed files
- Other unnecessary data
Storage Sense is useful if you want Windows to handle routine cleanup automatically.
How to Delete Temp Files Manually From the Temp Folder
You can also manually access the current user’s temporary folder.
Step 1: Open Run
Press:
Windows + R
Step 2: Open the Temp Folder
Type:
%temp%
Press Enter.
File Explorer will open your temporary folder.
Step 3: Select Temporary Files
Press:
Ctrl + A
This selects the files and folders in the current location.
Step 4: Delete Them
Press:
Shift + Delete
or right-click and choose Delete.
Using regular Delete sends files to the Recycle Bin, while Shift + Delete attempts to remove them directly.
For routine cleanup, regular Delete is perfectly fine.
Step 5: Skip Files That Are in Use
Windows may display a message saying a file is currently being used.
Choose the option to skip the file.
Do not worry if some files cannot be removed.
They may be required by a program that is currently running.
How to Delete Windows Temp Files
Windows also has a system-level temporary folder.
Open the System Temp Folder
- Press Windows + R.
- Type:
C:\Windows\Temp
- Press Enter.
You may receive a permission prompt.
Delete the Available Files
Select files you want to remove and press Delete.
Windows may prevent certain files from being removed because they are currently being used.
If that happens, select Skip.
You do not need to force Windows to delete every file.
How to Delete Temp Files With Disk Cleanup
Disk Cleanup is a classic Windows utility that remains useful for removing unnecessary system files.
Step 1: Search for Disk Cleanup
Open the Windows search box.
Type:
Disk Cleanup
Select the application from the results.
Step 2: Select Your Drive
Choose the drive you want to clean, usually:
C:
Then select OK.
Step 3: Select File Categories
Disk Cleanup will calculate how much space can be recovered.
You may see options such as:
- Temporary files
- Temporary Internet Files
- Thumbnails
- DirectX Shader Cache
- Recycle Bin
- System error memory dump files
- Delivery Optimization Files
Review the list carefully.
Step 4: Click OK
Select OK.
Then choose the option to delete the selected files.
Windows will begin cleaning the drive.
How to Delete More System Files With Disk Cleanup
Disk Cleanup can sometimes provide additional system-level cleanup options.
Steps
- Search for Disk Cleanup.
- Open it.
- Select your system drive.
- Choose Clean up system files.
- Select the drive again if prompted.
- Review the available categories.
- Select the items you want to remove.
- Click OK.
This can reveal additional Windows-generated files that are not included in the initial scan.
How to Delete Temporary Files With Storage Settings
Windows 11’s Storage page provides a useful overview of what’s consuming your drive.
Open:
Settings → System → Storage
You may see categories such as:
- Installed apps
- Temporary files
- Documents
- Pictures
- Videos
- Other
- System & reserved
Selecting Temporary files gives you a more detailed view of removable data.
This is one of the best methods for beginners because Windows clearly presents the categories before deletion.
How to Delete Browser Cache in Windows 11
Browser cache is technically different from Windows temporary files, but it can also consume storage.
Browsers store temporary copies of website resources so pages can load more quickly later.
If you want to clean browser cache, use the browser’s own settings.
For example, in a Chromium-based browser, you can typically open the privacy or browsing-data settings and select cached images and files.
Keep in mind that clearing cache may cause some websites to load slightly slower the first time afterward because the browser has to download the files again.
How to Delete Temporary Files After a Windows Update
Major Windows updates can leave behind installation files and previous-version data.
Windows’ Storage settings and Disk Cleanup can help identify removable update-related files.
Check Temporary Files
Go to:
Settings → System → Storage → Temporary files
Review the listed categories.
You may see update-related cleanup options depending on the current state of your PC.
Important Warning About Previous Windows Installations
If Windows offers an option related to a previous Windows installation, understand that deleting it can remove your ability to easily return to that earlier installation.
Therefore, don’t remove previous installation files immediately after a major upgrade unless you’re sure you won’t need the rollback option.
How to Delete Temp Files From the Recycle Bin
When you use regular Delete in File Explorer, files may be moved to the Recycle Bin rather than permanently removed.
If you’re trying to recover storage, remember to empty the Recycle Bin.
Empty the Recycle Bin
- Find Recycle Bin on the desktop.
- Right-click it.
- Select Empty Recycle Bin.
- Confirm the action.
Check the contents first if you might need to recover anything.
How to Delete Temporary Files Automatically
If you don’t want to manually clean temporary files, Storage Sense is the better approach.
Why Automatic Cleanup Helps
Temporary files accumulate naturally as you use Windows.
Instead of thinking about cleanup every week, you can let Windows manage certain categories automatically.
Open:
Settings → System → Storage → Storage Sense
Review the available cleanup schedule and configure it according to your preferences.
How to Delete Temp Files Without Deleting Personal Files
This is a common concern.
Using Windows’ Temporary files cleanup section does not mean you have to delete your personal documents, pictures, or videos.
The key is to review each category before selecting it.
Be especially careful with:
- Downloads
- Recycle Bin
- Previous Windows installations
These categories may contain files you still want.
If your goal is simply to clean temporary data, focus on clearly labeled temporary-file categories.
How Much Space Can Temporary Files Free?
There is no fixed amount.
The amount depends on how long you’ve used the PC, which applications you run, Windows update history, browser usage, and available storage.
One computer may have only a few hundred megabytes of temporary data, while another could have several gigabytes.
Windows will show the estimated amount of removable space before you confirm many cleanup operations.
Does Deleting Temp Files Make Windows 11 Faster?
It can help when your storage drive is extremely full, but deleting temporary files is not a magic performance booster.
If your computer is slow, other factors may be involved, including:
- Too many startup applications
- Low RAM
- High CPU usage
- Background processes
- Outdated drivers
- Malware
- Failing storage hardware
- Excessive browser tabs
- Resource-heavy applications
Storage cleanup is one part of general PC maintenance.
Can I Delete Temp Files Every Day?
You usually don’t need to.
Windows automatically manages many temporary files, and manually deleting them every day provides little benefit for most users.
Instead, use Storage Sense or perform occasional cleanup when storage space becomes limited.
Why Can’t Windows Delete Some Temp Files?
This is completely normal.
A temporary file may currently be:
- Open in an application
- Used by Windows
- Part of an active installation
- Locked by a background process
Windows protects files that are currently in use.
If you see a message saying that a file is being used, select Skip.
You don’t need to force the deletion.
How to Delete Temp Files When Windows Says a File Is in Use
If many temporary files are locked, try these steps.
Close Running Applications
Save your work and close unnecessary programs.
Restart Windows
A restart can release files that were being used by background processes.
Run Cleanup Again
After restarting, return to the temporary-files cleanup tool and try again.
Don’t Force Locked Files
If a few files remain, that’s okay.
Windows can clean them up later when they are no longer in use.
How to Delete Temp Files Using Command Prompt
Advanced users can use Command Prompt to manage temporary folders, but manual command-line deletion is generally unnecessary when Windows already provides graphical cleanup tools.
For most users, Settings, Storage Sense, and Disk Cleanup are safer and easier.
If you’re unfamiliar with Windows command-line tools, there is little reason to use them for routine temporary-file cleanup.
Common Mistakes When Deleting Temp Files
1. Selecting Downloads Without Checking
Your Downloads folder may contain important files.
2. Deleting Files From Random System Folders
Not every file that looks temporary is safe to remove manually.
3. Forcing Locked Files
If Windows says a file is in use, leave it alone.
4. Expecting a Huge Performance Increase
Freeing disk space can help when your drive is nearly full, but temporary-file cleanup isn’t a guaranteed speed boost.
5. Deleting Previous Windows Installation Files Too Soon
Those files can sometimes be useful for returning to an earlier Windows installation.
Best Method to Delete Temp Files in Windows 11
Here’s a quick comparison of the available methods:
| Method | Difficulty | Best for |
|---|---|---|
| Settings → Temporary files | Easy | Most users |
| Storage Sense | Easy | Automatic cleanup |
| Disk Cleanup | Easy | System cleanup |
%temp% |
Moderate | Manual user temp files |
C:\Windows\Temp |
Moderate | System temporary files |
| Browser cleanup | Easy | Browser cache |
| Command Prompt | Advanced | Experienced users |
For most people, Settings → System → Storage → Temporary files is the best starting point.
A Simple Windows 11 Cleanup Routine
You don’t need to constantly clean your PC.
A practical routine could look like this:
- Check available storage.
- Open Settings → System → Storage.
- Review Temporary files.
- Remove unnecessary temporary data.
- Empty Recycle Bin if appropriate.
- Check Downloads before deleting anything there.
- Keep Storage Sense enabled if you want automatic maintenance.
- Restart Windows when troubleshooting persistent temporary-file problems.
This keeps cleanup simple without turning PC maintenance into a daily chore.
Frequently Asked Questions
How do I delete temp files in Windows 11?
Open Settings → System → Storage → Temporary files, select the temporary data you want to remove, and click Remove files. You can also use Disk Cleanup or manually open %temp%.
Is it safe to delete temp files in Windows 11?
Generally, temporary files identified by Windows’ built-in cleanup tools can be removed. If Windows reports that a particular file is currently in use, skip it instead of forcing deletion.
How do I delete temporary files using Run?
Press Windows + R, type %temp%, and press Enter. Select unnecessary files and delete them. Some files may be locked because they are currently being used.
Does deleting temp files improve PC performance?
It can help reclaim storage, particularly when your drive is nearly full, but deleting temporary files alone does not guarantee a noticeable performance improvement.
How often should I delete temp files?
Most users do not need to delete them manually on a daily basis. Windows manages many temporary files automatically, and Storage Sense can handle routine cleanup for you.
Final Thoughts
Knowing how to delete temp files in Windows 11 gives you an easy way to reclaim storage and perform basic PC maintenance. Windows 11 already includes several tools that make the process simple, so you don’t need complicated third-party cleaners for routine cleanup.
For beginners, start with Settings → System → Storage → Temporary files. It provides a clear list of categories and lets you review what Windows considers removable. Storage Sense is another excellent option if you’d prefer Windows to perform certain cleanup tasks automatically.
If you want more control, Disk Cleanup and the %temp% folder provide additional options. Just remember that some files will be locked because Windows or another application is using them. That’s normal—skip those files rather than forcing them to be removed.
Most importantly, review categories such as Downloads, Recycle Bin, and previous Windows installations carefully. Cleaning your PC should free unnecessary space, not accidentally remove something you still need.
Key Takeaways
- Windows 11 provides several built-in ways to delete temporary files.
- Settings → System → Storage → Temporary files is the easiest method.
- Storage Sense can automate routine cleanup.
- Disk Cleanup provides additional system-file cleanup options.
%temp%opens the current user’s temporary-file folder.C:\Windows\Tempcontains system-level temporary data.- Some files cannot be deleted because they are currently in use.
- Always review Downloads before selecting it for deletion.
- Be cautious when deleting previous Windows installation files.
- Temporary-file cleanup primarily helps reclaim storage rather than guaranteeing faster performance.