Temporary files can build up on a Windows 10 PC while you browse the web, install apps, update Windows, or work with documents. Over time, these files may use valuable storage space. If you are wondering how to clear temporary files in Windows 10, you can use built-in tools such as Settings, Storage Sense, and Disk Cleanup, or remove selected files manually. The safest approach is to review what Windows plans to delete and avoid removing files you still need.
This guide explains several ways to clear temporary files, how to choose the right method, and what to do if a file will not delete. You do not need to install a third-party cleaner to perform the steps below.
What Are Temporary Files in Windows 10?
Temporary files are created to help Windows and applications complete tasks. Some are removed automatically when they are no longer needed, but others can remain after an app closes, an installation finishes, or an update is applied. A collection of old temporary files may take up gigabytes of space, although the amount varies from computer to computer.
Common examples include temporary app data, files left by Windows updates, delivery optimization files, thumbnails, crash reports, and cached web content. Temporary folders may also contain files used by apps that are currently running. For that reason, Windows may prevent you from deleting some items, and you should not force-delete files that are in use.
How to Clear Temporary Files Using Windows 10 Settings
The Storage section in Settings is a straightforward way to find and remove many types of temporary files. It shows categories before deletion, so you can review the selected items rather than clearing folders blindly.
- Open the Start menu and select Settings, or press Windows key + I.
- Select System, then choose Storage from the left-hand menu.
- Select Temporary files. Windows may take a little time to calculate how much space is available to free.
- Review the categories listed, such as temporary files, thumbnails, and Windows Update cleanup.
- Check the boxes beside the categories you want to remove, then select Remove files.
Read each category before selecting it. The Downloads category, if shown, refers to files in your personal Downloads folder. Those files may include documents, installers, photos, and other items you want to keep. Leave that box unchecked unless you have reviewed the folder and are certain you no longer need its contents.
Windows may also offer categories related to a previous Windows installation. Removing a previous installation can free a substantial amount of space, but it may prevent you from returning to that earlier version of Windows. Only remove it if you are confident you will not need the rollback option.
Use Storage Sense to Automatically Remove Temporary Files
Storage Sense can clean up certain temporary files automatically when your PC is low on space. You can also configure a schedule so Windows performs routine cleanup without requiring you to repeat every step manually.
- Go to Settings > System > Storage.
- Turn on Storage Sense.
- Select Configure Storage Sense or run it now to adjust its settings.
- Choose when Storage Sense should run, such as when free disk space is low or on a regular schedule.
- Review the options for temporary files and files in the Recycle Bin.
- Select Clean now if you want to run the cleanup immediately.
Storage Sense settings can include an option to delete files in the Downloads folder after a chosen period. This option is not the same as removing only disposable system files: it can delete personal files. Keep it turned off unless you deliberately want Windows to manage old Downloads automatically and understand the selected time limit.
Clear Temporary Files with Disk Cleanup
Disk Cleanup is a built-in Windows utility that can remove temporary data and other unnecessary system files. It is useful when you want to review cleanup categories or free space after an update.
- Open the Start menu and type Disk Cleanup.
- Select the Disk Cleanup app from the search results.
- If prompted, choose the drive you want to clean. Windows is usually installed on the C: drive.
- Wait for the scan to finish, then review the file categories.
- Select the categories you want to remove and choose OK.
- Select Delete Files to confirm.
For additional cleanup options, open Disk Cleanup again and select Clean up system files. If prompted, choose the Windows drive and wait for a new scan. This may reveal items such as Windows Update cleanup or temporary Windows installation files. Review the list carefully, because some choices can remove recovery or rollback files.
Disk Cleanup may take several minutes, especially when it is removing update files. Keep the PC connected to power if you are using a laptop, and avoid interrupting the process while it is working.
Delete Temporary Files Manually from the Temp Folders
You can also open your user temporary folder directly. This method gives you a quick way to remove files that are no longer being used, but it requires extra care because the folder may contain active app data.
- Press Windows key + R to open the Run dialog.
- Type %temp% and press Enter.
- In the folder that opens, press Ctrl + A to select the contents.
- Press Delete, or right-click and choose Delete.
- If Windows says a file is open or in use, select Skip for that item.
Deleting the contents of the folder is different from deleting the folder itself. Leave the Temp folder in place so Windows and apps can continue using it. You may also find a system-wide temporary folder at C:\Windows\Temp. Opening or cleaning that location may require administrator permission. If you choose to use it, remove only files Windows allows you to delete and skip anything that is in use.
Do not use force-delete utilities or change permissions just to remove a file that Windows is protecting. A locked file may be needed by an active program or system process. Restarting the computer and trying again later can sometimes make an obsolete file removable.
Clear Temporary Browser Files
Web browsers store cached images, website data, and other temporary content to help pages load faster. Clearing a browser cache can free some space or help resolve a website display issue, but it is separate from clearing Windows temporary files.
In Microsoft Edge, open the menu, select Settings, then go to Privacy, search, and services. Under the option to clear browsing data, choose Choose what to clear, select a time range, and check the types of data you want to remove. Other browsers have similar controls in their privacy or history settings.
Be thoughtful about selecting cookies and saved passwords. Clearing cookies may sign you out of websites, while removing saved passwords can make it harder to sign in. If your goal is simply to clear cached files, select the cache option and leave other data unchecked.
What to Check Before Removing Temporary Files
Most cleanup options are safe when you review the categories, but a few precautions can prevent accidental data loss. Before you start, save your work and close apps that are performing downloads, installations, or updates. If you are cleaning a work computer, check whether your organization manages storage or has rules about deleting system data.
- Review the selected categories before confirming a cleanup.
- Check the Downloads folder separately before choosing to remove its contents.
- Do not delete files from unfamiliar system folders just because their names look temporary.
- Skip items that Windows reports are currently in use.
- Keep your computer connected to power during a lengthy system cleanup.
Temporary-file cleanup is not a substitute for backing up important files. Although the built-in tools are designed to identify removable data, always keep personal documents, photos, and other important files backed up somewhere safe.
Why Temporary Files May Not Delete
If Windows cannot remove a file, it may be in use by an open app, a background process, or an update. Close the related program and try again. If you are unsure which program is using it, restart Windows, then run Storage cleanup or Disk Cleanup before opening your usual apps.
Some items may return after cleanup because Windows or an app creates new temporary data as it runs. That is normal. If the amount of free space does not change much, check the Storage page to see which categories are using the most space. Large personal files, installed apps, and system restore data may account for more storage than temporary files.
If the Settings page appears stuck, allow time for Windows to scan the drive. For persistent problems, restart the PC and try another built-in method, such as Disk Cleanup. Avoid repeatedly deleting protected files or downloading unknown cleanup software.
How to Confirm the Cleanup Worked
After removing temporary files, return to Settings > System > Storage and check the available space on the drive. You can also open File Explorer, select This PC, and look at the free space shown for your Windows drive. The change may be small if there were only a few temporary files to remove, or larger if update cleanup data had built up.
If you regularly run low on storage, turn on Storage Sense and review large files and unused apps. Removing an app you no longer need or moving personal files to another drive may free more space than clearing the temporary folders repeatedly.
Conclusion
The easiest way to clear temporary files in Windows 10 is to open Settings > System > Storage > Temporary files, review the categories, and select Remove files. Storage Sense can automate routine cleanup, while Disk Cleanup offers another built-in option for temporary and system files. You can also clear the contents of the user Temp folder, skipping anything Windows says is in use.
Whichever method you choose, review the cleanup options before confirming—especially Downloads and previous Windows installation files. With a little care, you can remove unnecessary temporary data, reclaim disk space, and keep your Windows 10 PC organized without deleting files you still need.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.