Windows does not have one temp folder — it has several, plus a few folders that only look like junk. This is the complete map, with the delete rule for each location.
Technicians do not wander a drive deleting whatever looks big. They work from a map: these folders are safe to empty, these are safe with rules, and these three are never touched by hand no matter what a viral video claims. Here is that map.
Location: %TEMP%, which means C:\Users\YourName\AppData\Local\Temp. Every installer, browser, editor and game writes working files here. Well-behaved apps clean up when they close; crashed apps and interrupted installers do not. This is normally the largest safe win in the whole map — commonly 2 to 10 GB on a machine that has never been cleaned.
Rule: empty the contents, skip files in use, never delete the folder itself.
Location: C:\Windows\Temp. Windows services, the installer engine and system tasks use this one. It needs an administrator approval to open, which is normal. It is usually smaller than the user temp folder but on a work PC it can still hold several GB of stale setup leftovers. Same rule: contents only, skip what is locked, best done straight after a restart.
Here is the honest part most cleanup videos skip. When you uninstall a program, its folder under C:\Users\YourName\AppData\Local and AppData\Roaming often stays behind — settings, caches and logs of a program that no longer exists.
When in doubt, leave it. A leftover folder costs space once; deleting a live app's data costs you its settings and possibly its licence state.
Windows keeps evidence when programs crash: C:\Users\YourName\AppData\Local\CrashDumps and the Windows Error Reporting queues under C:\ProgramData\Microsoft\Windows\WER. Individually small, but a repeatedly crashing app can stack up hundreds of MB of dump files.
Do not hunt these by hand — the Settings → Temporary files page lists them as system error memory dump files and delivery of error reports, and removes them safely. If the same app keeps producing dumps, the dumps are a symptom; the app is the fault.
Three locations get wrongly called "junk" in viral cleanup lists:
C:\Windows\Prefetch — a launch-tracking system Windows manages itself; emptying it makes apps open slower until it rebuilds. Leave it aloneC:\Windows\WinSxS — the component store, not a cache pile; never delete by handC:\Windows\Installer — the repair and uninstall cache for your installed programs; deleting it breaks repairs and uninstallsA folder being large and unfamiliar is not evidence it is junk. The map above is the whole safe territory.
See every cleanup location opened live on a real PC, in the same safe order, step by step.
▶️ Watch Full VideoAppData is hidden to stop casual deletion of live program data. Press Windows + R and type %TEMP% or %APPDATA% to jump straight there instead — you reach exactly the folder you need without exposing the whole tree.
Almost always it simply means a running program is using a file inside it. Close your apps or restart the PC and try again. Skipping locked files is the normal, correct behaviour — never force-delete a locked system file.
Compare the folder name with your installed list in Settings, then Apps. If the program is not installed and you do not plan to reinstall it, its leftover settings folder is safe to remove. If the program is installed, leave the folder — it is live data, not junk.