The short version
- Start in Settings › System › Storage to see what is actually using your space.
- Remove temporary files there, and turn on Storage Sense so Windows cleans them up automatically.
- Windows Update leftovers are removed with Disk Cleanup › Clean up system files.
- Never delete WinSxS, System32 or the Installer folder by hand. Shrink WinSxS with DISM instead.
- CleanSweep cleans Windows junk for free, and Pro adds browser and app caches plus automatic weekly cleanup.
What are junk files in Windows 11?
Junk files are files that Windows and your programs create for short-term use and no longer need: temporary files, the Windows Update download cache, error reports, logs, thumbnail caches and whatever sits in the Recycle Bin. Removing them does not affect how anything works, because Windows recreates what it needs.
Be realistic about the result: cleaning junk frees disk space, but it rarely makes a PC faster on its own. If startup feels slow, look at the programs that launch with Windows as well.
Which files are safe to delete, and which aren't?
| Type | Safe to delete? | Notes |
|---|---|---|
Temporary files (%TEMP%) | Yes | Files still in use are skipped automatically |
| Windows Update Cleanup | Yes | You can no longer roll back some older updates |
| Delivery Optimization Files | Yes | Update files cached to share with other PCs |
| Thumbnails and Windows error reports | Yes | Rebuilt or no longer needed |
| Previous Windows installation(s) | Yes, with care | Removes the option to go back to your previous version of Windows |
| Downloads folder | Only after checking | It contains your files, not junk |
| WinSxS, System32, Installer, Prefetch | No | Never delete these by hand |
How do you clean junk files with Windows 11's own tools?
These steps use only what ships with Windows 11. The Disk Cleanup and DISM steps need an administrator account.
-
See what is using your space
Open Settings › System › Storage. Windows 11 breaks your drive down into categories such as Installed apps, Temporary files and Documents, so you can see where the space actually went before you delete anything. Cleanup recommendations on the same page lists large or unused files and apps for you to review.
-
Remove temporary files
In Settings › System › Storage, select Temporary files. Windows scans and lists categories such as Windows Update Cleanup, Temporary files, Thumbnails and Recycle Bin. Tick the ones you want, but leave Downloads unticked unless you have checked that folder yourself, then select Remove files.
-
Turn on Storage Sense
In Settings › System › Storage, turn on Storage Sense, then open it to set the schedule: how often it runs, and how long files can sit in the Recycle Bin or Downloads before they are removed. Setting Downloads to Never is the safe choice if you keep files there.
-
Run Disk Cleanup with system files
Press Win, type “Disk Cleanup” and open it. Choose drive C:, then select Clean up system files. This reveals Windows Update Cleanup, Delivery Optimization Files and, after a major upgrade, Previous Windows installation(s). Tick what you want and select OK.
-
Empty the Temp folder by hand
Press Win + R, type
%temp%and press Enter. Select everything with Ctrl + A and press Delete. When Windows says a file is in use, tick Do this for all current items and choose Skip. Those files belong to programs that are running right now. -
Shrink WinSxS the right way
Open Terminal as administrator. To see whether a cleanup is worthwhile, run
DISM /Online /Cleanup-Image /AnalyzeComponentStore. If it recommends a cleanup, runDISM /Online /Cleanup-Image /StartComponentCleanupand wait for it to finish. Windows removes superseded components safely. -
Empty the Recycle Bin and review large files
Right-click the Recycle Bin and select Empty Recycle Bin once you are sure you need nothing in it. Then go back to Cleanup recommendations to review large or unused files. Moving them to an external drive or cloud storage is often better than deleting them.
-
Clear browser caches from the browser itself
Each browser has its own option for clearing cached images and files, usually in its privacy or history settings. Clearing it from the browser is safer than deleting cache folders while the browser is open, and you can choose to keep passwords and cookies.
Be careful with the Downloads checkbox. In Temporary files and Storage Sense, Downloads refers to your actual Downloads folder, not a cache. Leave it unticked unless you have checked what is in there.
Why shouldn't you delete WinSxS, System32 or Prefetch yourself?
Because these folders are part of Windows, not junk. WinSxS, the component store, holds the files Windows uses to install updates, repair itself and turn features on and off. Much of its apparent size comes from hard links to files that also live elsewhere, so it is smaller than it looks. Deleting from it by hand can break updates and system repair.
- System32 contains the core of Windows. Deleting from it can stop Windows from starting.
- C:\Windows\Installer keeps the files Windows needs to repair and uninstall programs. Without them, uninstalls fail later.
- Prefetch helps programs start faster. Windows rebuilds it anyway, so deleting it achieves nothing.
How does CleanSweep clean junk files?
CleanSweep cleans junk only from places known to be safe, shows the size of each category first, and lets you choose what to remove. It never touches your documents, passwords, cookies or settings, never sweeps a risky folder (for example, when %TEMP% has been pointed at the root of a drive), and checks for junctions before deleting each file.
- Free: Windows system junk, including temporary files, the Windows Update cache, Delivery Optimization files, error reports, crash dumps, logs, thumbnail caches and the Recycle Bin.
- Pro: deep cleanup of browser caches (Chrome, Edge, Brave, Vivaldi, Opera, Firefox), app caches (Discord, VS Code, Slack, Teams, Spotify, Steam), privacy traces and developer caches, plus an automatic weekly cleanup. Pro also shrinks WinSxS using Windows' own DISM, as part of system-wide leftover repair.
See junk cleanup in CleanSweep. The free edition is free forever with no ads. Pro is a one-time US$14.99 for 3 PCs, and you can try it free for 7 days in the app.
Related questions
Is it safe to delete everything in the Temp folder?
Yes. Windows and your programs only use the Temp folder for short-term files. Anything currently in use cannot be deleted, so choose Skip for those files and the rest is removed safely.
Does Storage Sense delete files in my Downloads folder?
Only if you tell it to. Storage Sense has a separate setting for Downloads that can be set to Never. Check it after you turn Storage Sense on.
How often should I clean junk files?
For most people, once a month is plenty, or let Storage Sense run on a schedule. Cleaning every day brings no benefit, because Windows recreates many of these files during normal use.
Will cleaning junk make my PC faster?
Usually not by much. It frees disk space, which matters when a drive is nearly full. For a faster startup, reducing the programs that launch with Windows has a bigger effect.
Related guides: How to completely uninstall programs · How to remove a program that won't uninstall · How to disable startup programs