Disk Cleanup works fastest from Start, typing "disk cleanup," and choosing Disk Cleanup — or Win + R, then cleanmgr. In Windows 11 and Windows 10, run Clean up system files to reclaim Windows Update leftovers and old installations. Microsoft now positions the Settings > System > Storage page and Storage Sense as the primary routine, while Disk Cleanup remains available for deeper, one-off sweeps.

Run Disk Cleanup Step by Step

  1. Open Start, type disk cleanup, and select Disk Cleanup from the results. If the drive prompt appears, choose C: and select OK.
  2. Wait for the scan to finish. The list shows categories and the space each would free; sizes recalculate as you check boxes.
  3. Select the low-risk categories first: Temporary files, Recycle Bin, Thumbnails, and Delivery Optimization Files. Select OK, then Delete Files to confirm.
  4. For system-level cleanup, select Clean up system files in the same window, pick C: again, and let the scan complete. This relaunches the tool against system data.
  5. On the second pass, review Windows Update Cleanup, Previous Windows installation(s), and Windows upgrade log files. Select OK, confirm with Delete Files, and restart if prompted.
  6. After the tool closes, open Settings > System > Storage to verify the free-space change and review Cleanup recommendations.

If the window never opens, or the progress bar stalls, open Settings > System > Storage, select Temporary files, and let Windows clear the same categories from there.

Windows 11 vs. Windows 10: Where Each Path Lives

The Disk Cleanup executable is identical in both versions, but the modern alternatives differ slightly in wording:

  • Windows 11: Settings > System > Storage, then Cleanup recommendations or Temporary files. Storage Sense sits on the Storage page under Storage management.
  • Windows 10: Settings > System > Storage, then Configure Storage Sense or run it now. The Temporary files item appears on the same Storage page.
  • Windows 11 24H2 and later: Settings > System > Storage may break usage down by category (Installed apps, Documents, Pictures) before the cleanup options appear.

Both editions also still list Disk Cleanup under Start > Windows Administrative Tools > Disk Cleanup, which is useful on managed machines where Start search is restricted.

Run Disk Cleanup from the Command Line

cleanmgr supports silent and scripted runs, which helps on machines you manage. The documented syntax includes /d to pick a drive and /sageset:n and /sagerun:n to save a profile and reuse it:

cleanmgr /d C:
cleanmgr /sageset:11
cleanmgr /sagerun:11

Run /sageset:11 once, check the categories you want, and select OK; the selection is stored under that profile number. Later, /sagerun:11 runs the saved profile without dialogs. Note that /d is not combined with /sagerun:n. The full parameter reference is on Microsoft's cleanmgr command page.

On Windows Server, Disk Cleanup may need the Desktop Experience feature or two copied files (cleanmgr.exe and cleanmgr.exe.mui) before it appears; desktop Windows 11 and Windows 10 include it by default.

Decide What Is Safe to Delete

Category What it removes Safe for routine use?
Temporary files App and system temp folders Yes
Recycle Bin Files you already deleted Yes, after checking contents
Delivery Optimization Files Cached update content shared on your network Yes
Windows Update Cleanup Superseded update packages Yes, but updates can't be uninstalled afterward
Previous Windows installation(s) Windows.old from an upgrade Yes, after you confirm files and apps work
Downloads Files in your Downloads folder Review first — some users keep installers there

The Downloads folder is the most commonly misunderstood category: checking it deletes real user files, not cache. Leave it unchecked unless you have sorted through it.

Fix a Cleanup That Won't Finish or Frees Little Space

If the scan hangs on Windows Update Cleanup, stop background Windows Update activity first: open Settings > Windows Update, let any pending install finish, and restart before rerunning the tool. A stalled cleanup often clears on the second attempt after a reboot.

If the tool reports very little reclaimable space, the space is usually elsewhere: Settings > System > Storage > Installed apps for large programs, Settings > System > Storage > Advanced storage settings > Storage used on other drives for other volumes, and the System > Recovery page for restore points you no longer need.

If cleanup fails with an access or file-in-use error, restart and retry. Persistent failures on the Windows component store call for DISM /Online /Cleanup-Image /RestoreHealth, followed by sfc /scannow in an elevated Command Prompt. Both take time and require a restart; treat them as repair steps, not cleanup steps.

Removing Previous Windows installation(s) is irreversible: you lose the built-in route back to the prior Windows version. Back up personal files first, confirm apps and drivers work for a few days, then delete. On work or school laptops, some categories are disabled by IT policy — stop there and ask your administrator rather than changing registry settings.

Keep Space Reclaimed with Storage Sense

Storage Sense automates the routine cleanup. In Settings > System > Storage > Storage Sense, turn it on and set Run Storage Sense to weekly or monthly. Under Delete files in my recycle bin if they have been there for over and Delete files in my Downloads folder if they haven't been opened for over, choose intervals that fit your habits — the Downloads option is off by default and should stay off unless you genuinely discard installers quickly.

Scheduling cleanmgr through Task Scheduler achieves the same result on older builds: create a task that runs cleanmgr /sagerun:11 monthly with the saved profile. Confirm the free-space gain in Settings > System > Storage after the first scheduled run, and adjust sageset categories if it removes something you wanted.

Frequently Asked Questions

Is Disk Cleanup being removed from Windows?

No. Microsoft presents the Storage settings and Storage Sense as the recommended default, but Disk Cleanup and cleanmgr remain present in Windows 11 and Windows 10 and can still be run from Start search.

Why is "Clean up system files" missing?

It usually indicates the tool is running without the needed elevation, or a policy blocks system-file cleanup on a managed device. Close Disk Cleanup, reopen it, and confirm the elevated relaunch appears; on domain-joined PCs, check with IT before looking at policy settings.

Does Disk Cleanup delete my personal files?

Only in categories that touch user content: Recycle Bin and Downloads. Temp, thumbnail, and update cache categories hold regenerable data. Leave Downloads unchecked unless you have reviewed that folder.

Can I recover space deleted by Disk Cleanup?

No — deletions are permanent. Files in the Recycle Bin can sometimes be restored with file-recovery tools, but Windows Update Cleanup and Previous Windows installation(s) cannot be undone, which is why the review step matters.