Where Windows 10 stores temporary files and why they pile up
Windows 10 creates temporary files constantly — when you install programs, browse the web, update Windows, or run almost any process. These files sit in specific folders on your hard drive and are supposed to delete themselves when you're done. They often don't. Over weeks and months, they accumulate and take up gigabytes of space that could go to programs, documents, or photos you actually need.
The main temporary file folders are C:\Windows\Temp (system temporary files) and C:\Users\[YourUsername]\AppData\Local\Temp (user temporary files). Your web browser also stores temporary copies of web pages and images in a separate cache folder. None of these folders are visible by default — Windows hides them to prevent accidental deletion.
Clearing these files is safe. Windows will recreate any temporary file it actually needs, and deleting old ones won't break your system or programs. The process takes 10 to 15 minutes and can free up 500 MB to several gigabytes depending on how long it's been since you last cleared them.
Key Takeaways
- Temporary files live in hidden folders that you must show before you can delete them: go to View > Hidden Items in File Explorer.
- The fastest method is Disk Cleanup, a built-in Windows tool that finds and removes temporary files in one step.
- If Disk Cleanup doesn't work or freezes, you can manually delete files from C:\Windows\Temp and C:\Users\[YourUsername]\AppData\Local\Temp.
- Close all open programs before deleting temporary files, because Windows may not let you remove files that are currently in use.
- Clearing your browser cache removes temporary web pages and images but will log you out of websites and slow down page loading slightly until the cache rebuilds.
Using Disk Cleanup to remove temporary files automatically
Disk Cleanup is the easiest method because it finds and removes temporary files without you having to navigate hidden folders. Open the Start menu, type "Disk Cleanup" and press Enter. A window will open asking which drive you want to clean — select C: (your main drive) and click OK.
Windows will scan for temporary files. This takes 30 seconds to 2 minutes depending on how many files exist. When the scan finishes, a list appears showing what can be deleted. Look for checkmarks next to "Temporary files", "Recycle Bin", and "Temporary internet files". Leave other items unchecked unless you recognize them and want them gone. Click "Clean up system files" at the bottom to also remove old Windows update files, which can be large.
Click "Delete Files" to confirm. Windows will remove the selected files. If a dialog says a file is in use, click "Skip" and continue — Windows will delete what it can. When finished, close Disk Cleanup. You may need to restart your computer for some deletions to take effect, though usually you won't.
Manually clearing temporary files if Disk Cleanup fails
If Disk Cleanup freezes, crashes, or doesn't appear to work, you can delete temporary files by hand. First, show hidden files so you can see the Temp folders. Open File Explorer, click the "View" tab at the top, and check the box next to "Hidden items". Now you can see folders that were invisible before.
Navigate to C:\Windows\Temp. Select all files in this folder (Ctrl+A), then press Delete. Windows may say some files are in use — click "Skip all" and continue. Delete what you can. Then navigate to C:\Users\[YourUsername]\AppData\Local\Temp (replace [YourUsername] with your actual Windows username) and repeat: select all, delete, skip files that are in use.
If you get stuck on a single file that won't delete, right-click it and choose "Delete". If that fails, the file is probably open in a program. Close all programs and try again. You don't need to delete every file — even removing half of them will free up space. When you're done, empty the Recycle Bin to complete the deletion.
Clearing your web browser's temporary cache
Your web browser stores copies of web pages, images, and videos you've visited so they load faster next time. This cache can grow to hundreds of megabytes. Clearing it removes these stored copies and logs you out of most websites, but it's safe and the browser will rebuild the cache as you browse.
In Microsoft Edge, click the three-dot menu in the top right, select "Settings", then "Privacy, search, and services". Under "Clear browsing data", click "Choose what to clear". Check "Cached images and files" and "Cookies and other site data", then click "Clear now". In Google Chrome, press Ctrl+Shift+Delete, check the same boxes, set the time range to "All time", and click "Clear data".
After clearing the cache, websites may load slightly slower for a few days as your browser rebuilds the cache. This is temporary. If you want to keep your login sessions, uncheck "Cookies and other site data" and clear only the cached images and files.
Preventing temporary files from piling up again
Windows doesn't automatically delete old temporary files, so they accumulate over time. You can set up automatic cleanup by using the Storage Sense feature. Open Settings (Windows key + I), go to "System" > "Storage", and turn on "Storage Sense". Set it to run automatically — "Every day" is most thorough, but "Weekly" or "Monthly" also works.
Storage Sense will automatically delete temporary files, the Recycle Bin, and other clutter on the schedule you choose. You can also run Disk Cleanup manually once a month to stay ahead of buildup. Most people notice a difference in available disk space after the first cleanup, then smaller improvements with each subsequent run.
What to avoid when clearing temporary files
Do not delete files from C:\Program Files or C:\Program Files (x86) — these contain your installed programs and deleting them will break applications. Do not delete anything from C:\Windows\System32 unless you know exactly what you're doing. Stick to the Temp folders and use Disk Cleanup, which is designed to know the difference between safe and unsafe files.
If a program crashes or behaves strangely after you clear temporary files, restart your computer. The program will recreate the temporary files it needs. If the problem persists, the crash was not caused by clearing temporary files — temporary files are not essential to program operation.
How much space you can expect to free up
The amount of space varies widely depending on your usage. Light users who clear temporary files regularly might free up 200 to 500 MB. Heavy users who haven't cleared in months or years can free up 2 to 5 GB or more, especially if Windows updates have accumulated. The only way to know is to check your available disk space before and after the cleanup.
If you're running low on disk space and clearing temporary files doesn't free up enough room, look at your Downloads folder, Documents, and Pictures — these often contain files you can move to external storage or delete. You can also uninstall programs you no longer use by going to Settings > Apps > Apps & features, selecting a program, and clicking "Uninstall".
Frequently Asked Questions
Will clearing temporary files slow down my computer?
No. Temporary files slow down your computer by taking up disk space and making Windows work harder to manage them. Clearing them frees up space and can actually improve performance. You may notice slightly slower web page loading for a few days after clearing the browser cache, but this is temporary and normal.
Is it safe to delete everything in the Temp folder?
Yes, it's safe. Windows will recreate any temporary file it needs. If a program is currently using a temporary file, Windows won't let you delete it — you'll get an "in use" message. Close all programs before deleting to remove as many files as possible, but don't worry if a few won't delete.
What's the difference between Disk Cleanup and manually deleting Temp files?
Disk Cleanup is safer because it knows which temporary files are actually safe to delete and which ones Windows might need. Manual deletion works but requires you to navigate hidden folders and handle errors yourself. Use Disk Cleanup first; only delete manually if Disk Cleanup fails or freezes.
Do I need to restart Windows after clearing temporary files?
Usually no, but restarting doesn't hurt. Some temporary files can only be deleted when Windows restarts, so if you want to be thorough, restart after clearing. You'll notice the freed-up disk space when ready either way.
Will clearing temporary files delete my saved passwords or browsing history?
No, unless you specifically check the box for "Browsing history" or "Passwords" in your browser's clear data menu. Temporary files and cache are separate from your saved passwords and history. If you only clear "Cached images and files", your passwords and history stay intact.