You can use the cleanmgr command to launch the Disk Cleanup tool using Command Prompt. To use it: Open Command Prompt, type cleanmgr, and hit Enter. In the Drive Selection window, select the drive you want to clean up and click OK.