Add Disk Cleanup To Right Click Context Menu For Hard Drive

Windows needs time to time touch by Disk Cleanup Utility because as the time passes Windows PC collects lots of junk and temporary files which are cause of slowdown of your computer.

Disk cleanup utility collects information about your computer’s downloaded program files, temporary internet files, offline web pages, Recycle Bin,  setup log files, temporary files, error files and many other unused files.

Removing these files from your PC will definitely boost up your system performance. You can open Disk cleanup tool by clicking on “Start” button and type disk cleanup in the search box. It would be great if we could get that option in the context menu when we right click the hard disk drive.

Here’s a small registry tweak by which we could get that option in the context menu.

Click the Start button and type regedit in the search box. Press Enter.


In the registry editor, go to



Right click on the shell key and select New –> Key


Name the key diskcleanup. On the right click on the Default and select Modify.


In the Edit string box, enter the value Disk Cleanup and press OK.


Now right click on diskcleanup directory and go to New –> Key.


Give a name command to this key and right click on Default and set the value to

cleanmgr.exe /d %1


Now close the registry editor and go to My Computer section. Right click on the C drive, you’ll see Disk Cleanup option there. Click on it.


A scanning will start immediately. It will take some time to scan.


After some time you’ll get all the Disk cleanup report. In the Files to delete section, some boxes are checked by default and some are not checked. You can check those boxes and click on OK button to permanently delete those files.


That’s how you can add right click context menu for hard drives.

[via Tomstricks]

Leave a Reply

Your email address will not be published. Required fields are marked *