cleanmgr /sagerun:1
This is where CMD shines. You can schedule your "Sagerun" profile to happen automatically every week so you never run out of space. disk cleanup cmd
Whenever you want to perform that exact cleanup again without the menus: cleanmgr /sagerun:1 Use code with caution. Copied to clipboard cleanmgr /sagerun:1 This is where CMD shines
Ultimate Guide to Disk Cleanup Using Command Prompt (CMD) Windows accumulates system junk over time. Temporary files, update logs, and cache data degrade performance. While the graphical Disk Cleanup tool is well-known, using the Command Prompt (CMD) offers superior speed, automation, and advanced cleaning power. Copied to clipboard Ultimate Guide to Disk Cleanup
del /q /f /s C:\Windows\Prefetch\*
Or target system drive directly:
If you just want to open the tool for a specific drive quickly, use the /d switch: cleanmgr /dc Use code with caution. Copied to clipboard Replace c with whatever drive letter you want to target . 2. The "Set it and Forget it" (Custom Profiles)