Windows Disk Cleanup Cmd ((top)) May 2026

| Command | Function | |---------|----------| | cleanmgr /drive C | Launch GUI for C: drive | | cleanmgr /sageset:n | Create settings (n = 1-65535) – prompts user to select cleanup categories | | cleanmgr /sagerun:n | Run cleanup using saved settings (n matches /sageset ) |

dism /online /Cleanup-Image /StartComponentCleanup dism /online /Cleanup-Image /StartComponentCleanup /ResetBase These remove superseded components and cannot be undone. Create a batch script cleanup.bat : windows disk cleanup cmd

cleanmgr /sagerun:1 Note: /sagerun requires prior /sageset configuration run interactively once. Windows 10/11 includes automatic Disk Cleanup via Storage Sense, but command-line control is limited. Alternative: Use cleanmgr /verylowdisk (Windows 10+): | Command | Function | |---------|----------| | cleanmgr