Disk Cleanup Command Line Link

While most users know the graphical Disk Cleanup tool ( cleanmgr.exe ), running it from the command line offers more control, automation potential, and the ability to clean system files without clicking through dialogs.

cleanmgr

Once your settings are saved, you can trigger the cleanup without any further user interaction. cleanmgr /sagerun:1 disk cleanup command line

cleanmgr /sagerun:1