Windows 10 stores temporary files in specific folders, and you can delete most of them safely using built-in tools or by hand
Temporary files accumulate as you use Windows — they're created by Windows itself, by programs you install, and by your web browser. Most are harmless and get cleaned up automatically, but some stick around and take up disk space. You can delete them without breaking anything, as long as you avoid a few specific folders that Windows needs while it's running.
The safest approach is to use Windows' built-in Disk Cleanup tool, which knows which temp files are safe to remove. If you want more control, you can delete them manually from the folders where they live. Either way takes just a few minutes.
Key Takeaways
- Disk Cleanup is the safest method because it only removes temp files Windows has marked as safe to delete.
- Temporary files live in several folders: the Windows Temp folder, your user Temp folder, and your browser cache, each of which you can clear separately.
- You should close all open programs before deleting temp files, because Windows may not let you remove files that are currently in use.
- Deleting temp files typically frees up between 100 MB and several GB, depending on how long it's been since you last cleared them.
Using Disk Cleanup to remove temporary files safely
Disk Cleanup is a Windows tool designed specifically for this task. Open it by typing "Disk Cleanup" into the Windows search box and clicking the result. The tool will scan your drive and show you a list of file types you can safely delete, with temporary files already checked by default.
When the scan finishes, you'll see checkboxes next to different categories. Look for "Temporary files" and "Temporary internet files" — both should already be checked. You can also check "Recycle Bin" if you want to empty it at the same time. Click "Delete Files" at the bottom, and Windows will remove them. The process usually takes less than a minute.
If you want to clean up more aggressively, click "Clean up system files" at the bottom of the Disk Cleanup window. This requires administrator permission and shows additional categories like old Windows installation files. Only check these if you're sure you don't need them — for most people, the standard cleanup is enough.
Manually deleting temp files from the Windows Temp folder
If you prefer to see exactly what you're deleting, you can go directly to the folders where Windows stores temporary files. The main one is the Windows Temp folder, located at C:\Windows\Temp. Open File Explorer, paste that path into the address bar at the top, and press Enter.
You'll see a folder full of files and subfolders with names like "tmp" followed by random numbers. Select all of them using Ctrl+A, then press Delete. Windows may tell you that some files are in use and can't be deleted — that's normal. Click "Skip" for those files and continue. The ones that can be deleted will be removed.
If you get a permission error, close all your open programs first, including web browsers and email clients. Some programs lock their temp files while they're running. After closing everything, try again.
Clearing your user Temp folder
Your personal user account also has its own Temp folder, separate from the Windows system one. This folder is at C:\Users\[YourUsername]\AppData\Local\Temp, where [YourUsername] is your actual Windows username. You can navigate there the same way — paste the path into File Explorer's address bar.
This folder often contains more files than the Windows Temp folder, because it accumulates leftovers from programs you've installed and used. Select all the files and folders here using Ctrl+A and delete them. Again, Windows will skip any files that are currently in use, which is fine.
If the AppData folder isn't visible, you need to show hidden files. In File Explorer, click the "View" tab at the top, then check the box next to "Hidden items." Now AppData will appear.
Deleting browser cache and temporary internet files
Your web browser stores copies of web pages, images, and other content in a cache folder so pages load faster when you visit them again. This cache can grow quite large. You can clear it from within your browser rather than hunting for the folder.
In Microsoft Edge, press Ctrl+Shift+Delete to open the clear browsing data window. Check "Cached images and files" and "Cookies and other site data," then click "Clear now." In Chrome, do the same with Ctrl+Shift+Delete. In Firefox, use Ctrl+Shift+Delete and check "Cache."
You can also set your browser to clear the cache automatically every time you close it. In Edge, go to Settings > Privacy, search, and services, scroll down to "Clear browsing data," and toggle on "Choose what to clear every time you close the browser."
What to do if you can't delete a temp file
If Windows tells you a file is in use and won't let you delete it, that means a program currently has it open. Close all your programs, including background apps you might not see, and try again. If a file still won't delete, restart your computer and try immediately after it boots up, before programs have time to create new temp files.
You can also use a tool called CCleaner, which is free and designed to remove stubborn temp files that Windows won't let you touch directly. Download it from ccleaner.com, install it, and run it. It will handle files that are locked by running programs. Be cautious with the "Registry" section of CCleaner — stick to cleaning files and folders unless you know what you're doing.
How often you should delete temporary files
There's no harm in deleting temp files weekly or even daily. Many people run Disk Cleanup once a month and never think about it again. If your computer is running slowly or your hard drive is nearly full, clearing temp files is one of the first things to try.
You can automate this by scheduling Disk Cleanup to run on a regular basis. Open Task Scheduler by typing "Task Scheduler" into the Windows search box. Click "Create Basic Task," give it a name like "Monthly Cleanup," set it to run monthly, and point it to the Disk Cleanup executable. This way you don't have to remember to do it by hand.
Frequently Asked Questions
Will deleting temp files break Windows or my programs?
No. Temporary files are designed to be deleted. Windows creates new ones as needed. The only risk is if you delete temp files while a program is actively using them, which is why you should close all programs first. Disk Cleanup avoids this problem automatically.
How much space will I free up?
It varies widely depending on how long it's been since you last cleaned and what programs you use. A first cleanup might free up 500 MB to 2 GB. Regular cleanups usually free up 100 to 500 MB. If your hard drive is nearly full, clearing temp files is worth doing even if the space gain is modest.
Is it safe to delete everything in the Temp folders?
Almost everything is safe. The only exception is if a program is currently using a file — Windows will prevent you from deleting those anyway. Disk Cleanup is safer because it only removes files Windows has already marked as temporary, but manually deleting from the Temp folders is also fine if you close all programs first.
What's the difference between Disk Cleanup and manually deleting files?
Disk Cleanup is simpler and safer because it knows which files are safe to remove. Manual deletion gives you more control and lets you see what you're deleting, but requires more steps. For most people, Disk Cleanup is the better choice.
Can I delete files from the Temp folder while Windows is running?
Yes, but Windows will skip any files that are currently in use. Close all your programs first to maximize how many files actually get deleted. If you want to delete everything without skipping anything, restart your computer in Safe Mode, where fewer programs load automatically.