Where Windows 10 stores temporary files and why they pile up

Windows 10 creates temporary files constantly — when you install programs, browse the web, edit documents, or run updates. These files are meant to be deleted automatically, but they often aren't. Over time they accumulate in hidden folders on your hard drive, taking up gigabytes of space and slowing down your system because your drive has less room to work.

Temporary files live in several places. The main folder is C:\Users\[Your Username]\AppData\Local\Temp, which you can navigate to manually. Windows also stores temporary files in C:\Windows\Temp, though this folder requires administrator permission to access. A third location is your Recycle Bin, which holds deleted files until you empty it. Clearing all three is the most thorough approach.

Key Takeaways

  • The fastest method is using Disk Cleanup, a built-in Windows tool that clears temporary files in under five minutes without requiring administrator knowledge.
  • You can also navigate to the Temp folder manually and delete files there, though some files may be locked and cannot be removed while Windows is running.
  • Storage Sense, a newer Windows 10 feature, can delete temporary files automatically on a schedule you set.
  • Clearing temporary files typically frees between 500 MB and several gigabytes, depending on how long since you last cleared them.

Using Disk Cleanup to remove temporary files

Disk Cleanup is the simplest method because it handles permissions automatically and shows you exactly what it will delete before it does. Open the Start menu, type Disk Cleanup, and click the result. A window will appear asking which drive to clean — select C: (your main drive) and click OK. Windows will scan for temporary files, which takes one to two minutes.

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. These are safe to delete. Leave other items unchecked unless you recognize them and know they are safe. Click Delete Files at the bottom. Windows will ask for confirmation — click Delete again. The process takes a few seconds to a few minutes depending on how many files exist.

Manually clearing the Temp folder

If you prefer to see exactly which files are being deleted, you can navigate to the Temp folder yourself. Open File Explorer and paste this into the address bar at the top: C:\Users\%username%\AppData\Local\Temp. Press Enter. A folder full of files and subfolders will open — these are all temporary files.

Select all files by pressing Ctrl + A, then press Delete. Windows will warn you that some files are in use and cannot be deleted — this is normal. Click Skip for those files. The ones that can be deleted will be removed when ready. You do not need to empty the Recycle Bin afterward because these files go directly to trash.

If you want to clear the Windows system Temp folder as well, paste this into the address bar: C:\Windows\Temp. Follow the same process. This folder may require administrator permission — if you see an error, right-click File Explorer in your taskbar, select Run as administrator, and try again.

Setting up automatic temporary file deletion with Storage Sense

Storage Sense is a Windows 10 feature that can delete temporary files on a schedule, so you do not have to remember to do it manually. Open Settings by pressing Windows key + I. Click System in the left menu, then Storage. Toggle Storage Sense to On.

Once Storage Sense is on, click Configure Storage Sense or run it now. A new window opens. Under "Automatic user content cleanup", set the dropdown to how often you want files deleted — Every day, Every week, or Every month are the options. Storage Sense will then delete temporary files on that schedule without you doing anything. You can also click Clean now to delete temporary files when ready.

What to do if files are locked or will not delete

Some temporary files stay locked while Windows is running because programs are still using them. If you see errors saying a file is in use, do not force delete it — just skip it. These files will usually delete the next time you restart your computer, or Disk Cleanup will handle them automatically.

If you want to delete locked files right now, restart your computer in Safe Mode, which loads Windows with only essential services running. Press Windows key + R, type msconfig, and press Enter. Click the Boot tab, check Safe boot, and click OK. Your computer will restart in Safe Mode. Open File Explorer, navigate to the Temp folder again, and try deleting the files. Restart normally when you are done.

How much space you can expect to free up

The amount of space temporary files take depends on how long it has been since you last cleared them and how much you use your computer. A computer that has not been cleaned in six months might have 2 to 5 gigabytes of temporary files. A computer cleaned regularly might only have 500 MB to 1 GB. After clearing, you should notice your drive has more free space and your computer may feel slightly faster, especially if your drive was nearly full.

You can check how much space you freed by opening Settings, clicking System, then Storage. The bar at the top shows your total drive space and how much is free. If you want to keep your computer running smoothly, clearing temporary files once a month is a reasonable schedule — more often if you install programs frequently or browse heavily.

Frequently Asked Questions

Is it safe to delete all temporary files?

Yes. Temporary files are designed to be deleted. Windows will not let you delete files that are currently in use, so you cannot accidentally break anything. If a file is locked, skip it and try again later — it will delete on the next restart or next cleanup.

Will deleting temporary files affect my programs or documents?

No. Temporary files are separate from your actual programs and documents. Your installed programs, photos, documents, and downloads will not be touched. Only cache files and leftover installation files are removed.

What is the difference between Disk Cleanup and Storage Sense?

Disk Cleanup is a one-time tool you run manually whenever you want. Storage Sense runs automatically on a schedule you set. Both are safe — use Disk Cleanup if you want to clean now, or turn on Storage Sense if you want it to happen automatically.

Can I delete files from the Recycle Bin at the same time?

Yes. Disk Cleanup includes the Recycle Bin in its cleanup, so checking that box will empty it along with temporary files. You can also right-click the Recycle Bin on your desktop and select Empty Recycle Bin separately if you prefer.

Do I need to restart my computer after clearing temporary files?

No. You can use your computer when ready after clearing temporary files. A restart is only necessary if some files were locked and you want to delete those too.