Windows Vista

Add "Remove Temporary Files" and "Run Disk Cleanup" to right-click menu

Through several registry modifications, you can create an enhanced “right-click” menu for the Recycle Bin. The new options will allow you to delete the temporary files in the following two directories: %UserProfile%\AppData\Local\Temp and %SystemRoot%\Temp. Additionally, another menu will be created that will allow you to run the disk cleanup utility.

Please be aware that this change requires making a change to the Windows Vista registry.

Note: Editing the registry has the potential to cause serious (and unrecoverable) damage to your PC. If you are at all uncomfortable editing the registry, please do not attempt the following.

The first step is to create a registry file. You can do this by opening Notepad (Start >> All Programs >> Accessories >> Notepad) and copying and pasting the following:

Sponsored Content

Maximize Value from Microsoft Defender

In this ebook, you’ll learn why Red Canary’s platform and expertise bring you the highest possible value from your Microsoft Defender for Endpoint investment, deployment, or migration.

Windows Registry Editor Version 5.00 


@="&Remove Temp Files" 














00,20,00,26,00,26,00,20,00,28,00,66,00,6f,00,72,00,20,00,2f,00,64,00,20,00,\ 25,00,25,00,61,00,20,00,69,00,6e,00,20,00,28,00,2a,00,29,00,20,00,64,00,6f,\ 00,20,00,72,00,64,00,20,00,22,00,25,00,25,00,61,00,22,00,20,00,2f,00,71,00,\ 20,00,2f,00,73,00,29,00,00,00 [HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\Erase] @="&Run Disk Cleanup" [HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\Erase\Command] @=hex(2):43,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,63,00,20,00,43,\ 00,6c,00,65,00,61,00,6e,00,6d,00,67,00,72,00,20,00,2f,00,73,00,61,00,67,00,\ 65,00,73,00,65,00,74,00,3a,00,36,00,35,00,35,00,33,00,35,00,20,00,26,00,20,\ 00,43,00,6c,00,65,00,61,00,6e,00,6d,00,67,00,72,00,20,00,2f,00,73,00,61,00,' 67,00,65,00,72,00,75,00,6e,00,3a,00,36,00,35,00,35,00,33,00,35,00,00,00

Save the file with the name RecycleBin.reg and close Notepad.

Double-click RecycleBin.reg to add the changes to your registry.

If you did not Disable UAC, you will have to grant access, click Continue:

You will then be greeted with the following warning message, click Yes:

After the new registry values have successfully merged into your registry, you will be greeted with the following dialog, click Ok:

Right-click on the Recycle Bin and you see will now see two new options:

The two commands will require administrative privleges to run. When you click Remove Temp Files a Command Prompt window will appear briefly as the temp files are removed.

Related Articles

Got a question? Post it on our Windows Vista Forums!

Related Topics:


Don't have a login but want to join the conversation? Sign up for a Petri Account

Comments (1)

One response to “Add “Remove Temporary Files” and “Run Disk Cleanup” to right-click menu”

Leave a Reply

External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by:

Office 365 Coexistence for Mergers & Acquisitions: Don’t Panic! Make it SimpleLive Webinar on Tuesday, November 16, 2021 @ 1 pm ET

In this session, Microsoft MVPs Steve Goodman and Mike Weaver, and tenant migration expert Rich Dean, will cover the four most common steps toward Office 365 coexistence and explain the simplest route to project success.

  • Directory Sync/GAL Sync – How to prepare for access and awareness
  • Calendar Sharing – How to retrieve a user’s shared calendar, or a room’s free time
  • Email Routing – How to guarantee email is routed to the active mailbox before and after migration
  • Domain Sharing – How to accommodate both original and new SMTP domains at every stage

Aimed at IT Admins, Infrastructure Engineers and Project Managers, this session outlines both technical and project management considerations – giving you a great head start when faced with a tenant migration.the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

Sponsored by: