More on Overriding the “Delete” Command in the Recycle Bin Context Menu in Windows Vista
In article 142 - How to hide the “Delete” command from Recycle Bin context menu in Windows Vista published on Feb 14 2007, I provided a .REG file which removes the Delete command from the Recycle Bin context menu in Windows Vista. That tip helped hundreds of users so far. This article explains how that tip works.
Creating a verb named “Delete” in the registry
After working for an hour in the registry, I found the way to hide (actually override) the system default Delete option in the Recycle Bin context menu. The trick was the create a dummy Delete verb in the registry, under the Recycle Bin namespace GUID, and assign it a different display name (such as “Search“) by altering the (default) value for the Delete verb. The user will now see Search when they right-click the Recycle Bin, and the Delete option remains hidden.
Next task is to make the Search option operable. This is done by creating the sub-key named command, and assigning c:\windows\explorer.exe as the value data, in the following registry key:
Next, create a ddeexec branch, as you can see in the REG file in article 142 - How to hide “Delete” from Recycle Bin context menu, and assigning appropriate data. The DDE string FindFolder invokes the Search window.
Copyright © 2008 Ramesh Srinivasan. All rights reserved.
RELATED POSTS
- How to Fix a Corrupted Recycle Bin in Windows Vista
- Disable Empty Recycle Bin Confirmation in Windows XP and Vista
- How to Rename the Recycle Bin in Windows Vista
- Print Directory Listing to Clipboard From the Context Menu in Windows XP and Windows Vista
- Open an Elevated Command Prompt From the Desktop Context Menu
- How to Remove NVIDIA Control Panel From the Context Menu
- Add “Copy as Path” Option to the Context Menu in Windows XP
- “Copy Target URL” Context Menu Option for Internet Shortcut (.Url) Files
- Add “Open File Location” To the Context Menu for Shortcuts in Windows XP
- Search… Context Menu Option Removed in Vista Service Pack 1


Like this site? Make sure you