Skip to content

Commit 81bbf65

Browse files
cleanmgr: add page (#19014)
* cleanmgr: add page * Update pages/windows/cleanmgr.md Co-authored-by: Sebastiaan Speck <[email protected]> * Refactor cleanmgr command examples for clarity Updated command syntax for cleanmgr to use consistent formatting. --------- Co-authored-by: Sebastiaan Speck <[email protected]>
1 parent 482b0fd commit 81bbf65

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

pages/windows/cleanmgr.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# cleanmgr
2+
3+
> Clear unnecessary files from the computer's hard disk.
4+
> Deprecated in newer Windows versions and replaced by "Storage Sense".
5+
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cleanmgr>.
6+
7+
- Open Disk Cleanup for a specific drive:
8+
9+
`cleanmgr /d {{C}}`
10+
11+
- Open Disk Cleanup with all options selected by default:
12+
13+
`cleanmgr /d {{C}} /lowdisk`
14+
15+
- Clean up all files automatically without user prompts:
16+
17+
`cleanmgr /d {{C}} /verylowdisk`
18+
19+
- Configure which files to clean and save the settings to a specific profile:
20+
21+
`cleanmgr /sageset:{{profile_number}}`
22+
23+
- Run Disk Cleanup using a previously configured profile:
24+
25+
`cleanmgr /sagerun:{{profile_number}}`
26+
27+
- Clean up files left after a Windows upgrade:
28+
29+
`cleanmgr /autoclean`
30+
31+
- Clean up files from a previous Windows installation:
32+
33+
`cleanmgr /setup`
34+
35+
- Display help:
36+
37+
`cleanmgr /?`

0 commit comments

Comments
 (0)