Knowledge Base →5 min readUpdated: 2026-09-21

How to Clean User Temp Folders (%TEMP% and %TMP%) in Windows

%TEMP% and %TMP% are two environment variables pointing at the same folder — C:\Users\<name>\AppData\Local\Temp — where installers, browsers and apps dump scratch files they no longer need. Deleting its contents is safe: anything still in use is locked and simply skipped. The Win+R route takes two minutes, and a reboot beforehand removes almost all locks.

What lives in your Temp folder and why it grows

Every Windows account gets its own Temp folder, and both variables — %TEMP% and %TMP% — lead there, a compatibility relic dating back to DOS days. Programs use it for exactly the things they can afford to lose: setup files extracted by installers, partially downloaded data, intermediate video renders, crash dumps. Well-behaved apps clean up after themselves, but crashed setups, interrupted updates and portable tools leave everything behind, which is how the folder grows to several gigabytes over a couple of years.

You can confirm the location on your machine by pressing Win+R and typing %temp% — File Explorer opens the folder directly — or by running echo %TEMP% in a command prompt. The same junk exists one level up the tree: C:\Windows\Temp is the machine-wide counterpart, and cleaning it needs administrator rights.

  • Extracted installer and update payloads left behind after setup
  • Partial downloads that crashed before finishing
  • Scratch files from video, archive and photo tools
  • Crash dumps and error logs from misbehaving apps
  • Extracted archives you opened straight from a ZIP

Cleaning the folder safely

Restart the computer first — a fresh boot closes almost every program that might still hold Temp files open. Then press Win+R, type %temp%, click OK, select everything with Ctrl+A and press Delete. Files currently in use produce the “folder or file in use” dialog; click Skip for those, or tick “Do this for all” and let the rest delete.

Disk Cleanup is the alternative that thinks for you: run cleanmgr for drive C:, and its Temporary files item skips anything modified in the last seven days, so it never fights with running apps. Settings → System → Storage → Temporary files offers the same checkbox. Command-line fans can use Remove-Item $env:TEMP\* -Recurse -Force -ErrorAction SilentlyContinue, which silently skips locked files.

Keeping Temp from filling up again

Nothing you delete stays deleted for long — every installer and many apps recreate their temp data on the next run, and that is by design. Storage Sense can sweep the folder automatically: turn it on under Settings → System → Storage and enable the cleanup of temporary files, optionally dropping the interval to every two weeks or even weekly on busy machines.

A maintenance cleaner like Kleaner PRO does the same on a schedule and covers the neighboring junk — Windows Update leftovers, browser caches, thumbnail databases — in one pass, which is convenient if you would rather never think about %TEMP% again. Just remember the per-account rule: each user's Temp is separate, so cleaning your own folder does nothing for the other accounts on the PC.

Questions and Answers

Is it safe to delete everything in %TEMP%?

In principle yes — files in active use are locked and will be skipped anyway. Rebooting first and then deleting everything else is the safest sequence.

What is the difference between %TEMP% and %TMP%?

Nothing in practice: on a default Windows setup both variables point to C:\Users\<name>\AppData\Local\Temp. The duplication is a compatibility leftover.

Why is my Temp folder full again right after cleaning?

Because apps constantly recreate temporary files — that is normal. Set up Storage Sense or a monthly cleanup instead of expecting the folder to stay empty.

Know what is included before you buy.

The one-time 30-minute trial covers core tools. PRO-labelled features stay locked until a paid license is activated.

Read next

All articles · FAQ

Write to us: [email protected]