Advertisement

Add Show Recycle Confirmation to Windows 10 Recycle Bin Context Menu

How to Add Show Recycle Confirmation to Recycle Bin Context Menu in Windows 10

Windows has a special location called Recycle Bin where deleted files and folders are stored
temporarily, so the user has a choice to restore accidentally deleted stuff or remove it permanently.  You can have a special context menu command to turn on or off the 'Show delete confirmation' for the Recycle bin faster.

The Recycle Bin feature works as follows. For each drive letter, i.e. for drives and their partitions available on your device, Windows creates a hidden $Recycle.Bin folder. That folder contains subfolders which are named after the user's SID. In that subfolder, the operating system stores file deleted by the appropriate user. External hard drives connected to your computer will also have the $Recycle.Bin folder. However, USB flash drives and memory cards (SD/MMC) will not have a Recycle Bin. Files deleted from removable drives will be permanently deleted.

Advertisеment

In Windows 10, when the user is deleting a file or a folder, there is no confirmation prompt appearing on the screen. Instead, the File Explorer app directly sends the selected objects to the Recycle Bin. A confirmation dialog can be enabled in the properties of Recycle bin to achieve this:

Windows 10 Delete Confirmation

To turn on or off this dialog faster, you can add a special entry to the context menu of the Recycle Bin desktop icon.

Recycle Bin Show Recycle Confirmation Context Menu

Recycle Bin Show Delete Confirmation Context Menu

To Add Show Recycle Confirmation to Recycle Bin Context Menu in Windows 10,

  1. Download the following ZIP archive: Download ZIP archive.
  2. Extract its contents to any folder. You can place the files directly to the Desktop.
  3. Unblock the files.
  4. Double click on the Add Environment Variables Context Menu.reg file to merge it.
  5. To remove the entry from the context menu, use the provided file Remove Environment Variables Context Menu.reg.

You are done!

How it works

The Show recycle confirmation is actually a Ribbon command. As you may remember from my previous blog posts, you can add any Ribbon command to the context menu. See How to add any Ribbon command to the right click menu in Windows 10 for details.

In short, all the Ribbon commands are stored under the Registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell

You can export the desired command and modify the exported *.Reg in order to add it to the context menu of files, folders, or any other object visible in File Explorer. In our case, we need the command named "Windows.ToggleRecycleConfirmations".

Show Recycle Confirmation Ribbon Command

As you can see in the screenshot above, there is the Windows.ToggleRecycleConfirmations command we can use for our task. We are adding to the {645FF040-5081-101B-9F08-00AA002F954E} Active-X object. Its CLSID represents the Recycle Bin folder in the Registry. You can check out the following Registry path: HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}.

Show Recycle Confirmation Ribbon Command Added In Registry

That's it!

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.