

If you want to delete other types of files, Type cleanmgr /sageset:2 in step 2 and run cleanmgr /sageset:2 in step 4.

In the future, you just need to run cleanmgr /sageset:1. Then the preselected junk files will be deleted without a result window.

Type cleanmgr /LOWDISK and press Enter.Press Windows + R together to open Run.Way 1: Select all files automatically but confirm manually If you want to run Disk Cleanup in Windows Server 2022 via command, follow the steps below.
#Disk cleanup tool how to
How to clean up C drive in Server 2022 with command Click Delete Files in the pop-up window to confirm and start deleting.Click the check-box in front of the files that you want to delete and then click OK.How to clean up C drive in Server 2022 after Disk Cleanup is opened: C: drive is selected by default, simply click OK. Press Windows + R keys, type cleanmgr and press Enter.In the pop-up window, click Disk Cleanup. Open File Explorer, right click C: drive and click " Properties".There are two ways to open Disk Cleanup in Windows Server 2022: How to run Disk Cleanup in Windows Server 2022
