Applies ToWindows

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?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.