System Add Disk Cleanup to Context Menu of Drives in Windows 11


  • Staff
Disk_Cleanup_banner.png

You can use Disk Cleanup on a regular basis to reduce the number of unnecessary files on your drives, which can free up drive space and help your PC run better. It can delete temporary files and system files, empty the Recycle Bin, and remove a variety of other items that you might no longer need.

You can add Cleanup to the context menu of drives that will open Disk Cleanup to reduce the number of unnecessary files on the selected disk to free up disk space.

This tutorial will show you how to add Cleanup to the context menu of drives for all users in Windows 10 and Windows 11.


While you must be signed in as an administrator to add or remove the Cleanup context menu, all users will be able to use the context menu.



EXAMPLE: Disk Cleanup context menu

You will need to click/tap on Show more options first by default, then click/tap on Cleanup.


Show_more_options.png
Cleanup_context_menu.png
Disk_Cleanup.png



Here's How:

1 Do step 2 (add) or step 3 (remove) below for what you would like to do.

2 Add "Cleanup" to Context Menu od Drives

A) Click/tap on the Download button below to download the .reg file below, and go to step 4 below.​

Add_Disk_Cleanup_to_context_menu_of_drives.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\Windows.CleanUp]
"CommandStateSync"=""
"ExplorerCommandHandler"="{9cca66bb-9c78-4e59-a76f-a5e9990b8aa0}"
"Icon"="%SystemRoot%\\System32\\cleanmgr.exe,-104"
"ImpliedSelectionModel"=dword:00000001

3 Remove "Cleanup" from Context Menu of Drives

This is the default setting.


A) Click/tap on the Download button below to download the .reg file below, and go to step 4 below.​

Remove_Disk_Cleanup_from_context_menu_of_drives.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Drive\shell\Windows.CleanUp]

4 Save the .reg file to your Desktop.

5 Double click/tap on the downloaded .reg file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 When finished, you can delete the downloaded .reg file if you like.


That's it,
Shawn Brink


Related Tutorials

 

Attachments

  • Disk_Cleanup.png
    Disk_Cleanup.png
    4.1 KB · Views: 10
  • Add_Disk_Cleanup_to_context_menu_of_drives.reg
    886 bytes · Views: 26
  • Remove_Disk_Cleanup_from_context_menu_of_drives.reg
    524 bytes · Views: 23
Last edited:

Ten Forward

Well-known member
VIP
Local time
1:21 PM
Posts
53
OS
Windows 11 Pro
I wonder why they removed this option from where it used to be... This is a nice way to get it back. I wonder if it's also possible to have an entry for Check Disk. :unsure:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    Intel Core i5-10600K
    Motherboard
    Gigabyte Aorus Z490 Elite AC
    Memory
    32 GB (G.Skill Ripjaws V F4-3600C16D-32GVKC)
    Graphics Card(s)
    MSI GeForce RTX 3070 Gaming Z Trio
    Monitor(s) Displays
    LG UltraGear 27GL850
    Screen Resolution
    2560 x 1440
    Hard Drives
    Kingston A2000 500GB; Kingston A2000 1TB; WD Blue 3,5" (SMR, 256MB cache, 5400rpm) 4TB
    PSU
    be quiet! Straight Power 11 750W
    Case
    be quiet! Silent Base 801
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    CPU
    Intel Core i5-1155G7
    Memory
    8 GB
    Graphics card(s)
    Intel Iris Xᵉ
    Screen Resolution
    1920 x 1080

cereberus

Well-known member
Pro User
VIP
Local time
12:21 PM
Posts
2,973
OS
Windows 10 Pro + others in VHDs
I wonder why they removed this option from where it used to be... This is a nice way to get it back. I wonder if it's also possible to have an entry for Check Disk. :unsure:
Iti s there - You just click on drive in file explorer, select three dots ..., cleanup

 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

Ten Forward

Well-known member
VIP
Local time
1:21 PM
Posts
53
OS
Windows 11 Pro
Interesting, never clicked the three dots. If only there were an option to just show the icons and get rid of the three dots. Customization is not a priority it seems for MS.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    Intel Core i5-10600K
    Motherboard
    Gigabyte Aorus Z490 Elite AC
    Memory
    32 GB (G.Skill Ripjaws V F4-3600C16D-32GVKC)
    Graphics Card(s)
    MSI GeForce RTX 3070 Gaming Z Trio
    Monitor(s) Displays
    LG UltraGear 27GL850
    Screen Resolution
    2560 x 1440
    Hard Drives
    Kingston A2000 500GB; Kingston A2000 1TB; WD Blue 3,5" (SMR, 256MB cache, 5400rpm) 4TB
    PSU
    be quiet! Straight Power 11 750W
    Case
    be quiet! Silent Base 801
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    CPU
    Intel Core i5-1155G7
    Memory
    8 GB
    Graphics card(s)
    Intel Iris Xᵉ
    Screen Resolution
    1920 x 1080

Latest Support Threads

Top Bottom