How to start Disk Cleanup by using the command line

Summary

This article describes how to start the Disk Cleanup tool and specify the hard disk to be cleaned by using the command line.

More Information

To start the Disk Cleanup tool and specify the hard disk to be cleaned by using the command line, follow these steps:

  1. Click Start, and then click Run.

  2. In the Open box, type the following command, and then press Enter:

    c:\windows\SYSTEM32\cleanmgr.exe /dDrive Note In this command, the placeholder Drive represents the drive letter of the hard disk to be cleaned.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×