If you are reading this, there is a decent chance you already know the trick. Press Win + R, type %temp%, hit Enter, select everything, delete. It is one of the most widely shared pieces of Windows advice on the internet, and tens of thousands of people do it every month.

And then Windows throws up a dialog that says "The action can't be completed because the file is open in another program", you click Skip a dozen times, and you are left wondering whether it actually did anything.

Here is what is really going on in that folder.

What %temp% actually is

%temp% is an environment variable that points at your personal temporary folder — usually C:\Users\YourName\AppData\Local\Temp. Programs write scratch files there: installer payloads mid-install, a document your word processor is autosaving, the intermediate files a video editor makes while rendering.

The convention is that programs clean up after themselves when they close. In practice, a great many do not. Installers crash, applications are force-quit, and the leftovers simply stay there. Over months this accumulates.

Why half the files refuse to delete

The "file is open in another program" message is not an error and it is not something you can fix by trying harder. It is Windows protecting a file that a running process still has open. Your browser, your antivirus, background services and Windows itself are all legitimately using files in there at the moment you press Delete.

This matters more than most articles admit, because it changes the answer to "how much space will I get back."

We measured it. On one real, ordinary Windows machine:

That ratio is not unusual, and it is not a fault in your PC. It is simply what a temp folder looks like on a machine that is switched on and being used. If you close the browser and try again, more of it becomes deletable. If you reboot first, more again.

The honest version: a manual %temp% sweep on a typical machine recovers somewhere in the tens to hundreds of megabytes — not the tens of gigabytes that cleanup tools like to advertise. If a tool promises you 40 GB from temp files, it is counting things it cannot actually delete.

Is it safe to delete what's in there?

Yes. Anything Windows or an application genuinely still needs is either locked (so you cannot delete it) or will simply be recreated the next time it is required. That is what "temporary" means.

Two sensible cautions:

The second temp folder nobody mentions

There is another one: C:\Windows\Temp, the system-wide temporary folder. It usually holds less than your user folder, and it needs administrator rights to clear.

We deliberately leave it alone. Our cleanup runs without elevation, so it cannot reliably empty that folder — and a tool that counts files it cannot actually remove is just inflating its own number. We would rather report a smaller figure that is true. If you want to clear it yourself, Windows' own Disk Cleanup can do it when you choose "Clean up system files."

Windows already has tools for this, and they are decent

Credit where it is due. Storage Sense (Settings → System → Storage) can delete temporary files automatically on a schedule, and Disk Cleanup handles the system-level items that need admin rights. Neither costs anything, and if all you want is temp files gone periodically, Storage Sense is a perfectly reasonable answer.

Where they stop short: Storage Sense covers Windows' own idea of temporary files. It does not touch your browser caches individually, it does not report what it could not remove, and it does not tell you what it actually freed versus what it merely found.

Why it keeps coming back

This is the part worth sitting with. You clear %temp%, and a fortnight later it is full again — because the folder refills continuously by design. Every install, every crash, every render leaves something behind.

Manual cleanup is not wrong, it is just a task with no end. You are volunteering to repeat a five-minute chore forever, and most people quietly stop doing it after a while.

What we do differently

PC AutoPilot cleans the same folders you would clean by hand — your temp folder, browser caches for Chrome, Edge and Firefox, the thumbnail cache, recent-file shortcuts and Windows error reports — on whatever schedule you choose, without asking you to remember.

The part we care more about is the honesty of the number. Before it cleans, it checks which files can actually be deleted and reports that figure, with the locked portion shown separately. So you see "9 MB can be cleaned now, 200 MB in use" rather than a headline "209 MB found!" that quietly means something else.

Temporary and cache files are removed permanently, because they regenerate on their own and filling your Recycle Bin with them would defeat the point. Anything that is genuinely yours — the recent-files shortcuts, for instance — goes to the Recycle Bin where you can get it back.

Try it: PC AutoPilot is a one-time $29 purchase with a 14-day free trial and no credit card. Start the trial and run a scan — it will tell you what is genuinely removable on your machine, which is a more interesting number than the one you were expecting.

Related reading