top of page

Disk Cleanup Command Line Work Jun 2026

For deeper control, combine with standard commands:

cleanmgr

Disk Cleanup is a Windows utility that helps remove unnecessary files from your computer, freeing up disk space and improving system performance. It was first introduced in Windows 98 and has been a part of the Windows operating system ever since. The utility scans your disk for files that can be safely deleted, such as temporary files, system files, and recycle bin contents. disk cleanup command line

This opens the Disk Cleanup dialog pre-targeted at the C: drive. Advanced Automation with /SAGESET and /SAGERUN For deeper control, combine with standard commands: cleanmgr

cleanmgr /d D:

Windows immediately begins deleting the files you selected in Step 1 for the ID 1 profile. Automating with Task Scheduler For deeper control

bottom of page