Cookies

Disk Cleanup Command Prompt Jun 2026

: This is the "action" mode. It runs the cleanup using those saved settings automatically—no clicking required.

: Casual users – stick to the regular cleanmgr GUI by just typing "Disk Cleanup" in Start. disk cleanup command prompt

| Command | Purpose | |---------|---------| | cleanmgr | Opens the standard Disk Cleanup GUI | | cleanmgr /sageset:n | Creates a cleanup settings profile (n = number 0–65535) | | cleanmgr /sagerun:n | Runs the cleanup using a saved profile (silent/automated) | | cleanmgr /d C: | Targets a specific drive (C: in this example) | | cleanmgr /verylowdisk | Runs without confirmation, aggressively frees space | : This is the "action" mode

If you just type cleanmgr in CMD, it’s exactly like opening the regular app. The real value comes from the switches (like /sageset and /sagerun ), which let you pre-select dozens of categories and run them all at once later. | Command | Purpose | |---------|---------| | cleanmgr

It’s not as "pretty" as modern apps, and it won't clear your browser history or registry like some third-party tools. However, for safe, reliable, and automated system maintenance , it is unbeatable. It’s a must-know trick for anyone trying to free up space on a full C drive.

For tech-savvy users and system administrators, the method (using cleanmgr.exe ) is the most efficient way to maintain a Windows machine. While the standard graphical interface is fine for casual use, the command line offers deeper automation and advanced switches that the standard menu hides. Core Command: cleanmgr

To get the most out of the command line, use these specific parameters: