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:windowsexplorer.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.
Related Posts
- How to Fix a Corrupted Recycle Bin in Windows 7 and Windows Vista
- Disable Empty Recycle Bin Confirmation in Windows XP and Vista
- How to Disable the Empty Recycle Bin Confirmation Box in Windows 7
- Fix Recycle Bin Icon Does Not Refresh Correctly When Using Custom Icons in Windows 7
- How to Rename the Recycle Bin in Windows Vista
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?




