How to start Disk Cleanup by using the command line

Windows includes a Disk Cleanup tool, although it’s a bit hidden. This tool frees up space on your hard drive by deleting useless files — old temporary files created by programs, temporary Internet files for Internet Explorer, Windows error report logs, and more. You can run this tool at any time to free up disk space.
 
This article describes how to start the Disk Cleanup tool by using the command line. To start the Disk Cleanup tool by using the command line, follow these steps:
 
1. On your keyboard, press Win+R to open the Run dialog box
2. In the Open box, type the following command, and then press Enter:
 
 cleanmgr.exe 
 
 
3. Disk Cleanup Utility window appears..