Which Windows temp files are safe to delete

Short answer: nearly all of them. Temp folders are meant to be disposable. Here is what they actually hold, why a few files refuse to delete, and the safe way to clear them.

For Windows 10 and 11. In-use files are skipped, not forced.

What "temp" really means

Windows and the apps you run constantly write working files they intend to throw away: installer scratch space, partial downloads, render caches, crash-time snapshots. There are two main locations:

So is it safe to delete them?

Yes. Nothing in a temp folder is supposed to be permanent, and Windows recreates whatever it needs. The only real catch is files that are currently in use: an app that is running may have a temp file open, and Windows will refuse to delete it while it is locked.

That is a feature, not a problem. A good cleanup skips locked files and tells you, rather than forcing the delete and risking the app that owns them. You do not need to chase the last few megabytes.

The careful way to clear them

The built-in Disk Cleanup tool handles some of this, and you can select the temp folder contents in Explorer and delete them. Either works, but neither gives you a preview, a record of what went, or an undo.

Sifty treats user temp and system temp as two of its junk categories. See them first:

PS C:\> sifty junk scan
  User temp files            537 MB
  Windows temp files (admin) 210 MB
  ...

Then clear, with a confirm and a skip report:

PS C:\> sifty junk clean --apply
 Sent 12,136 items (537 MB) to the Recycle Bin.
! 41 item(s) skipped (in use).

The system temp folder needs elevation. Run sifty --admin junk clean --apply and Windows will prompt for it. Everything is sent to the Recycle Bin, every applied deletion is written to an audit log, and sifty undo restores the last clean if you need it back.

Clear temp files the safe way

Preview, skip what is in use, keep a record, and undo if you need to.

pipx install sifty