How do I run disk cleanup from Command Prompt?
How to Use the Disk Cleanup Utility via Command Prompt
- Open Command Prompt, type cleanmgr, and hit Enter.
- In the Drive Selection window, select the drive you want to clean up and click OK.
- Next, in the Disk Cleanup window, select all the files you want to delete and click OK.