Commands · Utility
UtilityWindows
Disk Cleanup
cleanmgr [/d drive]A graphical utility that finds and removes unnecessary files — temp files, old Windows Update leftovers, Recycle Bin contents — to free up disk space.
// FLAGS
/dspecify which drive to clean/sagerun:nrun a saved cleanup configuration automatically// EXAMPLE
Running Disk Cleanup and checking "Windows Update Cleanup" is a common way to reclaim several GB after a major Windows feature update.
// GOTCHA
"Clean up system files" (a separate elevated button inside the tool) is required to see the biggest space hogs, like old update files — the default non-elevated view only shows smaller, everyday temp files.
// RELATED COMMANDS