snippetbashTip
cleanmgr — Clear unnecessary files from the computer's hard disk. Deprecated in newer Windows versions and repl
Viewed 0 times
thecommandfilesfromunnecessarycleanmgrcliclear
windows
Problem
How to use the
cleanmgr command: Clear unnecessary files from the computer's hard disk. Deprecated in newer Windows versions and replaced by "Storage Sense". More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cleanmgr>.Solution
cleanmgr — Clear unnecessary files from the computer's hard disk. Deprecated in newer Windows versions and replaced by "Storage Sense". More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cleanmgr>.Open Disk Cleanup for a specific drive:
cleanmgr /d {{C}}Open Disk Cleanup with all options selected by default:
cleanmgr /d {{C}} /lowdiskClean up all files automatically without user prompts:
cleanmgr /d {{C}} /verylowdiskConfigure which files to clean and save the settings to a specific profile:
cleanmgr /sageset:{{profile_number}}Run Disk Cleanup using a previously configured profile:
cleanmgr /sagerun:{{profile_number}}Clean up files left after a Windows upgrade:
cleanmgr /autocleanClean up files from a previous Windows installation:
cleanmgr /setupDisplay help:
cleanmgr /?Code Snippets
Open Disk Cleanup for a specific drive
cleanmgr /d {{C}}Open Disk Cleanup with all options selected by default
cleanmgr /d {{C}} /lowdiskClean up all files automatically without user prompts
cleanmgr /d {{C}} /verylowdiskConfigure which files to clean and save the settings to a specific profile
cleanmgr /sageset:{{profile_number}}Run Disk Cleanup using a previously configured profile
cleanmgr /sagerun:{{profile_number}}Context
tldr-pages: windows/cleanmgr
Revisions (0)
No revisions yet.