The quickest way to delete temporary files in Windows 10 is Settings > System > Storage > Temporary files: check the boxes for the categories you want gone and select Remove files. Disk Cleanup and the Temp folder itself are two other built-in options, and Storage Sense can do the job for you on a schedule. None of these routes needs extra software.
These steps are for Windows 10. Microsoft ended support for Windows 10 on October 14, 2025, so a Windows 10 PC only gets security fixes now if it’s enrolled in Extended Security Updates, which run until October 12, 2027. On Windows 11, the Storage page looks different, so follow the Windows 11 version of these steps instead.
What counts as a temporary file, and what to leave alone
Windows and your apps make temporary files as they work. Installers unpack into them, Windows Update keeps downloaded packages, File Explorer saves thumbnail previews, and apps park scratch data while they run. Most of it is supposed to go away by itself, but a lot gets left behind, and over months it can add up to several gigabytes.
Removing these files frees drive space. A PC that’s nearly full will often feel snappier afterward, and installing updates gets easier, but if your drive already has plenty of room, don’t expect a big speed boost. Free space also matters for hard drive upkeep, because Microsoft says a volume needs at least 15 percent free for a complete pass when you defrag Windows 10. When temporary files aren’t the main problem, these other ways to free up space on Windows 10 cover large apps, hibernation and moving files off the C: drive.
One warning before you start. The Temporary files list in Settings mixes real leftovers with a few categories that aren’t temporary at all:
- Downloads is your own Downloads folder. Checking it deletes everything saved there, including installers, PDFs and photos you meant to keep.
- Recycle Bin empties the bin, so anything in it can no longer be restored.
- Previous Windows installation(s) (the Windows.old folder) and old Windows Update files are what Windows uses to roll back an upgrade or an update. Microsoft says the previous version only shows up for about 10 days after an upgrade, and once you delete it you can’t go back.
Leave those boxes clear unless you’ve checked what’s inside and you’re sure. The remaining categories, such as temporary files and thumbnails, are safe to remove. Windows rebuilds whatever it needs.
Delete temporary files from Settings
- Press Windows + I to open Settings. You can also open the Start menu and select the gear icon just above the power button.
- Select System, then Storage in the left-hand list. Windows shows your C: drive along with a bar that breaks down what’s using the space.
- Under the drive, select Temporary files (if it isn’t listed, look for an option to show more categories). Windows takes a moment to scan, then lists each type of file and how much space it uses.
- Check the categories you want to delete. Some are checked already, so look through the list and clear anything you’d rather keep, especially Downloads and Recycle Bin.
- Select Remove files at the top of the list. The scan figures go down as the files are deleted, and big categories can take a few minutes.
Once it finishes, go back to the Storage page. The used-space bar should be shorter and Temporary files should show a much smaller number. It rarely drops to zero, because files belonging to running apps are skipped.
Use Disk Cleanup for system files
Disk Cleanup is the older tool, and it’s still part of Windows 10. It’s worth running when Settings didn’t free enough space, because it can also remove system leftovers from updates.
- Type disk cleanup in the search box on the taskbar and select Disk Cleanup from the results.
- Choose the drive to clean (usually C:) and select OK. After a short scan, you’ll see a list of file types with check boxes.
- Select the name of any entry to see a short description of it. Downloaded Program Files, Temporary Internet Files and Thumbnails are selected by default. Check any others you want gone.
- For extra space, select Clean up system files, choose the drive again and select OK. The rescan adds system items, including old Windows Update files and, shortly after an upgrade, your previous Windows installation. Apply the rollback warning from earlier before you check these.
- Select OK, then Delete Files in the confirmation box. The window closes by itself when the job is done.
Empty the Temp folder by hand
Apps also store scratch files in a Temp folder inside your user profile, under the hidden AppData folder. This method is handy for clearing that folder directly, for example after an app installer failed and left a mess behind. If you want to browse the rest of that folder, the walkthrough on finding the AppData folder explains what Roaming, Local and LocalLow hold.
- Close the apps you have open. That way, fewer files will be locked.
- Press Windows + R, type %temp% and press Enter. Your personal Temp folder opens in File Explorer.
- Press Ctrl + A to select everything, then press Delete.
- If Windows tells you a file or folder is in use, choose Skip (check the box that applies your choice to all current items so you aren’t asked for every file). Those files belong to programs that are still running, and they’re safe to leave.
- Optionally, repeat the same steps in C:\Windows\Temp, the system-wide Temp folder. If Windows asks for administrator permission, select Continue.
- Empty the Recycle Bin. Files you delete in File Explorer go there first, so they don’t free any space until the bin is emptied.
Delete things only inside these Temp folders. Removing files from other places in AppData or the Windows folder can break apps or Windows itself. To browse to the folder in File Explorer rather than use the Run box, turn on hidden items in Windows 10 first.
Let Storage Sense clean up automatically
Storage Sense is built into Windows 10 and can delete temporary files for you. It’s off by default, and if you turn it on without changing anything else, it runs only when the drive gets low on space and leaves Downloads and OneDrive files alone.
- Go to Start > Settings > System > Storage and turn on the Storage Sense switch.
- Select the Storage Sense settings link under the switch to open its options page.
- Under Run Storage Sense, choose how often it runs (for example every day, week or month).
- Choose time limits for Delete files in my recycle bin if they have been there for over and Delete files in my Downloads folder if they haven’t been opened for more than. Pick Never for Downloads if you keep files there.
- If you’re signed in to OneDrive, you can choose when local copies of files you haven’t opened become online-only. This doesn’t delete anything from OneDrive. Files marked Always keep on this device stay put.
- If you want to start a cleanup straight away, use the option on the same page to run Storage Sense now.
A few limits apply. Storage Sense only works on the system drive, its settings apply only to your own user account, and it runs only after you’ve been signed in and online for more than 10 minutes. Microsoft’s Storage Sense help page lists each setting.
If the files won’t delete or the space doesn’t come back
- “File in use” messages: skip those files. You can also restart the PC and try again before you open any apps.
- Low disk space errors come back quickly: Microsoft says that Microsoft Store app files can keep refilling the Temp folder. To fix that, open Settings > Update & Security > Troubleshoot > Additional troubleshooters and run the Windows Store Apps troubleshooter. Next, press Windows + R, type wsreset.exe and select OK to clear the Store cache, then run the Windows Update troubleshooter and restart. More options are on Microsoft’s free up drive space in Windows page.
- Cleaner apps: you don’t need one. Third-party “PC cleaners” can remove things you wanted to keep, and some of them bundle unwanted extras. The built-in tools cover everything above.
Can you undo it?
Temporary files that Windows or your apps need are rebuilt automatically. Thumbnails, for example, reappear the next time you open a folder. What you can’t get back are files you removed through the Downloads or Recycle Bin categories, or a previous Windows installation. If you only deleted items from your Temp folder in File Explorer, they’re in the Recycle Bin until you empty it. Right-click a file there and select Restore.
Common questions about Windows 10 temporary files
How often should I clear them?
There’s no need for a fixed routine. Clean up when the drive is getting full, when an update fails for lack of space, or after a big install. Storage Sense set to run monthly handles the rest.
Is deleting temporary files the same as clearing my browser cache?
Not exactly. Settings and Disk Cleanup focus on Windows’ own files, so a browser’s cache is best cleared from inside the browser. When a website still misbehaves, follow these steps for clearing the browser, DNS and Microsoft Store caches on Windows 10.
What to do next
If clearing temporary files didn’t do enough for a slow PC, work through these tips to speed up Windows 10, starting with the apps that launch at startup.
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.