To delete temp files in Windows 11, open Settings > System > Storage > Temporary files, check the categories you want gone, and select Remove files. Before you remove anything, uncheck Downloads and Recycle Bin if they appear, unless you really want those emptied too. The steps below apply to Windows 11, including version 26H2. They use only the cleanup tools built into Windows, so you don’t need a third-party “PC cleaner.” Still on a Windows 10 PC? The Storage page there has different labels, so use the Windows 10 steps for removing temporary files instead.
What counts as a temporary file
Windows and your apps create temporary files while they work: installer leftovers, update downloads, thumbnails, error reports, and scratch files that apps write to the Temp folder. Microsoft describes them as files Windows and apps make while installing software, loading web pages or running updates, which often linger after they’re needed. Deleting them frees drive space. It won’t uninstall apps or touch your documents, as long as you leave the personal-file categories unchecked.
Don’t expect a big speed boost. Clearing temporary files mainly helps when your drive is nearly full, for example when Windows Update fails or you get low disk space warnings. Many of these files come back with normal use. On a computer that still uses a hard disk drive, it can also help to defrag Windows 11 with the built-in Optimize Drives tool once you have cleared some space.
Delete temp files from Settings
- Press Windows + I to open Settings, then select System > Storage. Windows takes a moment to measure what’s on your drive.
- Under your Windows drive, select Temporary files. If it isn’t listed, select Show more categories first. Windows scans and lists categories with the space each one uses, such as Temporary files, Thumbnails, Delivery Optimization Files and Windows Update Cleanup. The list varies from PC to PC.
- Read every checked box before going further. The items below are the ones that matter most:
- Downloads deletes everything in your Downloads folder, including files you saved on purpose. Uncheck it unless you’ve already moved what you need. If C: keeps filling up with downloads, another option is to move the Downloads folder to another drive.
- Recycle Bin permanently deletes what’s in the bin, so you can’t restore those files afterward. Uncheck it if you might want something back.
- Previous Windows installation(s) appears for a short time after a major upgrade. Microsoft says that if you delete your previous version of Windows, it can’t be undone and you won’t be able to go back. Leave it checked only if you’re sure you’ll stay on the current version.
- Select the categories you want to delete, then select Remove files. Confirm if Windows asks.
- Wait for Windows to finish. The space used by the removed categories drops, and the free space shown on the Storage page goes up.
Use Cleanup recommendations instead
Windows 11 also has Settings > System > Storage > Cleanup recommendations. Microsoft’s Free up drive space in Windows page describes it as a review of Temporary files, Large or unused files, Files synced to the cloud and Unused apps. You select items in each section and then choose Clean up for that section. It’s a useful second pass when temporary files alone don’t free enough space, but check the “large or unused files” suggestions carefully. Those are your own files, not temporary ones.
Clear the Temp folder by hand
Apps keep their own scratch files in your personal Temp folder, and the Settings cleanup doesn’t always catch all of them. Microsoft’s own cleanup article includes this manual method, with the warning to stick to the Temp folders only.
- Save your work and close as many apps as you can. Files that are open can’t be deleted.
- Press Windows + R, type %temp%, and press Enter. File Explorer opens your user Temp folder (inside AppData\Local). To see what else lives beside it, such as app settings in Roaming and LocalLow, here is how to open the AppData folder in Windows 11.
- Press Ctrl + A to select everything in the folder, then press Delete.
- If Windows says a file or folder is in use, check Do this for all current items and select Skip. Those files belong to something that’s running. Leave them alone; they’ll often be removable after a restart.
- Files deleted this way go to the Recycle Bin, so empty the bin afterward to actually free the space. See how to empty the Recycle Bin in Windows 11 if you need help.
There’s also a system-wide Temp folder at C:\Windows\Temp. You can repeat the same steps there, though Windows asks for administrator permission and more files will be locked. Don’t delete files from other Windows folders, even if they look like leftovers. Removing the wrong system files can stop apps or Windows from working.
Use Disk Cleanup for system files
The classic Disk Cleanup tool is still in Windows 11 and can reach some update leftovers that the Settings page doesn’t always show.
- Type disk cleanup in the search box on the taskbar and select Disk Cleanup.
- Choose your Windows drive (usually C:) and select OK. Disk Cleanup calculates how much it can free.
- In the list, check the types of files you want to delete. Select a name to read its description. Some items, such as Downloaded Program Files, Temporary Internet Files and Thumbnails, may already be checked, so clear any you want to keep.
- For more space, select Clean up system files, choose the drive again, and select OK. Disk Cleanup scans again and adds system categories such as Windows Update Cleanup. The same “previous version of Windows” warning applies here.
- Select OK, then Delete Files to confirm.
Let Storage Sense clean up automatically
Storage Sense is off by default. When it’s on, it deletes temporary files and older Recycle Bin items on a schedule, so you don’t have to remember. According to Microsoft’s Storage Sense guide:
- Go to Settings > System > Storage and select Storage Sense.
- Set Storage Sense to On.
- Under Run Storage Sense, choose how often it runs.
- Review the Recycle Bin option (“Delete files in my recycle bin if they have been there for over”) and the Downloads option (“Delete files in my Downloads folder if they haven’t been opened for more than”). Microsoft says Storage Sense leaves Downloads alone unless you set that option, so keep it at Never if you store important files there.
- To clean up straight away, select Run Storage Sense now.
Storage Sense works only on the system drive (usually C:), applies only to your user account, and runs only when you’ve been signed in and online for more than 10 minutes.
If temp files won’t delete or keep filling the drive
- “The action can’t be completed because the file is open.” An app or Windows is using it. Skip it, restart the PC, and try again. A few stubborn files are normal and harmless.
- “You need permission to perform this action” in C:\Windows\Temp. You need an administrator account. Skip files that still refuse to delete rather than changing folder permissions.
- Low disk space errors come back quickly after cleanup. Microsoft explains that the Temp folder can fill up with Microsoft Store app (.appx) files. To fix this, run Settings > System > Troubleshoot > Other troubleshooters > Windows Store Apps. Then press Windows + R, type wsreset.exe to clear the Store cache, run the Windows Update troubleshooter on the same page, and restart.
- Temporary files is a small number but the drive is still full. Temp files usually aren’t the problem. Check the larger categories on the Storage page, such as Apps, Documents and Pictures. Removing programs you don’t use, as explained in how to uninstall apps on Windows 11, often frees far more space. To see which files are actually taking the space, you can find large files on Windows 11 with a size search in File Explorer.
- A cleaner app offers to “fix” the registry or delete more files. You don’t need it for temporary files. Windows’ own tools cover them, and registry cleaning isn’t part of any Microsoft cleanup method.
Check the result, and what you can’t undo
Go back to Settings > System > Storage. The Temporary files total should be smaller and your free space larger. You can also open File Explorer, select This PC, and look at the free space under Devices and drives.
Deleted temporary files don’t need to be restored, because apps recreate what they need. Two choices can’t be reversed, though: emptying the Recycle Bin through the Temporary files list, and removing a previous Windows installation. If you deleted files from Downloads by mistake, look for copies in OneDrive, a backup, or the site you downloaded them from. If you deleted a personal file by mistake along the way, check the bin before emptying it, and locating the Recycle Bin in Windows 11 explains how to open it and restore items when the desktop icon is missing.
Common questions about temp files in Windows 11
How is this different from clearing the cache?
Windows’ temporary files are only one kind of cache. Your web browser, DNS and the Microsoft Store each keep their own, and you clear those separately. Those steps are in how to clear cache on Windows, and the Settings and browser steps work the same way on Windows 11. For the Windows 11 menus, including File Explorer’s See more and Options route and per-app Repair and Reset, see how to clear cache in Windows 11.
How often should I do this?
There’s no need for a fixed schedule. Clean up when free space gets low, before a big Windows update, or let Storage Sense handle it automatically.
Start with the Temporary files page in Settings, and turn on Storage Sense if you’d rather not do this by hand again.
Matthew Burleigh has been a freelance writer since the early 2000s. You can find his writing all over the Web, where his content has collectively been read millions of times.
Matthew received his Master’s degree in Computer Science, then spent over a decade as an IT consultant for small businesses before focusing on writing and website creation.
The topics he covers for MasterYourTech.com include iPhones, Microsoft Office, and Google Apps.
You can read his full bio here.