/
/

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

by Andrew Gono, IT Technical Writer
How to Add Show Recycle Confirmation to Recycle Bin Context Menu in Windows 10 blog banner image
How to Add Show Recycle Confirmation to Recycle Bin Context Menu in Windows 10 blog banner image

Key Points

  • Windows 10 lets you add a custom “Show Recycle Confirmation” option directly to the Recycle Bin’s right-click context menu via the Registry Editor or a .reg file.
  • The confirmation prompt is controlled by the ConfirmFileDelete registry value, found under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer.
  • Setting ConfirmFileDelete to 0 disables the delete confirmation dialog, while setting it to 1 re-enables it.
  • Both methods require administrator privileges and a Registry backup before making any changes.
  • This toggle is especially useful for IT administrators and power users who need to streamline or automate file deletion workflows across one or multiple workstations.

Managing how Windows 10 handles file deletion is a small but meaningful quality-of-life customization, especially for IT professionals and power users who work with large volumes of files. By default, Windows prompts you with a confirmation dialog every time you delete something to the Recycle Bin. While that safety net is helpful, it can slow down repetitive workflows.

The “Show recycle confirmation” context menu option allows users to enable/disable confirmation pop-ups when deleting files or folders. By default, the dialog box is displayed to help prevent accidental file removal, but having a custom switch can improve automation and even streamline employee workflows.

This article explains the “Show recycle confirmation” option, how to add it to your recycle bin context menu, and important troubleshooting tips.

Short on time? Here’s a quick answer: 

Open Registry Editor (Win + R > regedit), navigate to HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell, create a new key named ShowRecycleConfirm, and assign a PowerShell command to its command subkey that toggles the ConfirmFileDelete value. Alternatively, use the provided .reg file to apply the same changes automatically. Restart your PC to apply.

Step-by-step guide to adding the context menu item

⚠️ Before proceeding:

These methods involve modifying your Registry and require admin privileges. Before you start, prepare a backup

Take note that all methods listed are designed for Windows 10. While the underlying Registry key (ConfirmFileDelete) also exists in Windows 11, the context menu architecture in Windows 11 differs. For Windows 11 users, additional steps may be required to surface the custom context menu entry.

Method 1: Add “Show recycle confirmation” context menu via Registry Editor

  1. Press Win + R, type regedit, and hit Enter.
  2. If prompted by the User Account Control (UAC), click Yes.
  3. Using the Registry Editor’s address bar, navigate to the following directory:

HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell

  1. On the left-hand pane, right-click on the shell key and select New > Key.
  2. Name it ShowRecycleConfirm and press Enter.
  3. Name the context menu option.
    1. Right-click on a space in the right pane and select New > String Value.
    2. Name it (Default) and press Enter.
    3. Double-click on (Default) to modify its value.
    4. In the Value field, type Toggle Recycle Confirmation.
    5. Click OK.
  4. Assign an icon (optional).
    1. Right-click on a space in the right pane and select New > String Value.
    2. Name it Icon and press Enter.
    3. Double-click on Icon to modify its value.
    4. In the Value field, type imageres.dll,-5302.
    5. Click OK.
  5. Decide where it’s placed on the context menu.
    1. Right-click on a space in the right pane and select New > String Value.
    2. Name it Position and press Enter.
    3. Double-click on Position to modify its value.
    4. In the Value field, type Top.
    5. Click OK.
  6. Right-click on ShowRecycleConfirm and select New > Key.
  7. Name it command and press Enter.
  8. Double-click on command to modify its value.
  9. In the Value field, paste the following PowerShell command:

powershell.exe -WindowStyle Hidden -Command "& { $reg='HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'; if ((Get-ItemProperty -Path $reg -Name ConfirmFileDelete -ErrorAction SilentlyContinue).ConfirmFileDelete -eq 1) { Set-ItemProperty -Path $reg -Name ConfirmFileDelete -Value 0 } else { Set-ItemProperty -Path $reg -Name ConfirmFileDelete -Value 1 }; Stop-Process -Name explorer -Force }"

💡 Note: The PowerShell command automatically restarts Windows Explorer each time the toggle is used (Stop-Process -Name explorer -Force), so changes take effect immediately. The full PC restart recommended at the end of setup is only required once to ensure the new context menu entry is properly registered by the shell.

  1. Click Apply, then OK.
  2. Close Registry Editor and restart the PC to apply changes.

Method 2: Add “Show recycle confirmation” context menu option via the .reg file

These steps outline how to add a context menu option that toggles the recycle confirmation dialog via .reg files. This method is especially useful when you want to implement a custom option system-wide using batch files and Group Policy Objects (GPO).

  1. Press Win + S, type Notepad, and hit Enter.
  2. Paste the following PowerShell command:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\ShowRecycleConfirm]

@="Toggle Recycle Confirmation"

"Icon"="imageres.dll,-5302"

"Position"="Top"

[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\ShowRecycleConfirm\command]

@="powershell.exe -WindowStyle Hidden -Command \"& { $reg='HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer'; if ((Get-ItemProperty -Path $reg -Name ConfirmFileDelete -ErrorAction SilentlyContinue).ConfirmFileDelete -eq 1) { Set-ItemProperty -Path $reg -Name ConfirmFileDelete -Value 0 } else { Set-ItemProperty -Path $reg -Name ConfirmFileDelete -Value 1 }; Stop-Process -Name explorer -Force }\""

  1. Press Ctrl + S and name the file Add_ToggleRecycleConfirm.reg.
  2. Choose the All files file type and hit Enter.
  3. Open the file to apply the Registry settings. Alternatively, run the script through automation tools to deploy the .reg file across multiple workstations.
  4. When prompted by the UAC, click Yes.
  5. Restart the PC to apply changes.

Method 3: Deploy via Group Policy (GPO)

This method is ideal for IT administrators who need to enforce or standardize the recycle confirmation setting across multiple machines in a domain environment, without relying on individual users to run scripts or .reg files.

⚠️ This method requires domain admin privileges and access to the Group Policy Management Console (GPMC).

  1. Press Win + S, type Group Policy Management, and hit Enter.
  2. In the left-hand pane, navigate to your target Organizational Unit (OU).
  3. Right-click the OU and select Create a GPO in this domain, and Link it here.
  4. Name the GPO (e.g., Recycle Bin Confirmation Policy) and click OK.
  5. Right-click the new GPO and select Edit.
  6. In the Group Policy Management Editor, navigate to: User Configuration > Preferences > Windows Settings > Registry
  7. Right-click Registry and select New > Registry Item.
  8. Configure the item as follows:
    • Action: Update
    • Hive: HKEY_CURRENT_USER
    • Key Path: Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    • Value name: ConfirmFileDelete
    • Value type: REG_DWORD
    • Value data: 1 (to enforce confirmation on) or 0 (to suppress it)
  9. Click OK.
  10. Close the Group Policy Management Editor.
  11. Run gpupdate /force on target machines or wait for the next Group Policy refresh cycle.

💡 Note: GPO preferences apply at login and can be overridden by local users unless the policy is set under Computer Configuration or item-level targeting is configured. For stricter enforcement, consider pairing this with a logon script.

Method 4: Deploy via RMM

For organizations managing large fleets of Windows 10 endpoints, deploying the recycle confirmation toggle via an RMM platform is the most scalable approach.

The example below uses NinjaOne, but the same logic applies to any RMM platform that supports PowerShell script execution.

⚠️ This method requires an active NinjaOne account with administrator access and appropriate device targeting permissions.

Option A: Push the Registry change directly via PowerShell script

  1. Log in to your NinjaOne dashboard.
  2. Navigate to Administration > Library > Scripting.
  3. Click Add and select PowerShell as the script type.
  4. Name the script (e.g., Enable Recycle Confirmation) and paste the following:

powershell

$reg = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"

If (!(Test-Path $reg)) { New-Item -Path $reg -Force }

Set-ItemProperty -Path $reg -Name ConfirmFileDelete -Value 1

Stop-Process -Name explorer -Force

  1. Save the script and navigate to Devices.
  2. Select your target devices or device group.
  3. Click Run Script, select your saved script, and confirm execution.

💡 Note: To disable the confirmation prompt instead, change -Value 1 to -Value 0 in the script above. You can maintain both versions in your scripting library for on-demand toggling across your fleet.

Option B: Deploy the .reg file via RMM

If you prefer to use the .reg file from Method 2, you can push it silently to endpoints using NinjaOne’s file deployment and script execution features:

  1. Host the .reg file in an accessible location (e.g., a network share or your RMM’s file library).
  2. Use the following PowerShell command as your deployment script:

powershell

regedit.exe /s "\\yourserver\share\Add_ToggleRecycleConfirm.reg"

Stop-Process -Name explorer -Force

  1. Target and execute as outlined in Option A above.

How it works

The “Show recycle confirmation” context menu option uses the Registry to toggle the confirmation prompt by modifying its DWORD value. The specific key used (“ConfirmFileDelete”) is located in the directory below:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

ConfirmFileDelete is typically “on” by default, but changing its value to “0” removes the confirmation prompt that asks if you’re sure about deleting a file or folder. The PowerShell commands above manipulate this value when “Show recycle confirmation” is selected.

🛑| Manage and secure file permissions with on-demand menu options.

Read NinjaOne’s guide on how to add reset permissions to the context menu.

Removing the context menu entry

⚠️ This method involves modifying your Registry and requires admin privileges. Before you start, perform a backup. 

If you want to declutter your Recycle Bin’s context menu, remove the “Show recycle confirmation” context menu option by doing the following:

  1. Press Win + R, type regedit, and hit Enter.
  2. If prompted by the User Account Control (UAC), click Yes.
  3. Using the Registry Editor’s address bar, navigate to the following directory:

HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell

  1. In the right-hand pane, right-click the ShowRecycleConfirm key and select Delete.
  2. Click Apply, then OK.
  3. Restart the PC to apply changes.

If you also want to fully reset the ConfirmFileDelete value to its Windows default state, rather than just removing the context menu toggle, run the following command in an elevated PowerShell window:

Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name ConfirmFileDelete -ErrorAction SilentlyContinue

Stop-Process -Name explorer -Force

This removes the registry value entirely, returning Windows to its out-of-box confirmation behavior.

Troubleshooting common issues

Here are the most common roadblocks power users encounter when configuring the recycle bin context menu.

Issue: Context menu item not showing

If the “Show recycle confirmation” context menu item won’t appear, sign in as an administrator and try the following fixes:

Verify Registry path

  1. Press Win + R, type regedit, and hit Enter.
  2. If prompted by the User Account Control (UAC), click Yes.
  3. Using the Registry Editor’s address bar, navigate to the following directory:

HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\ShowRecycleConfirm

  1. Ensure that each string’s values are set properly.
  2. Click Apply, then OK.

Restart Windows Explorer to apply changes

  1. Run an elevated Command Prompt.
  2. Paste the following command line and hit Enter:

taskkill /f /im explorer.exe && start explorer.exe

Issue: Changes not applying

Ensure that the PowerShell command is valid and executable. Re-check all of the values to see if any policies are preventing code from being executed on the workstation.

Run the following code to temporarily disable execution restrictions and try again:

Set-ExecutionPolicy Unrestricted -Scope CurrentUser

Don’t forget to reset it to default settings once your task is complete.

Set-ExecutionPolicy Restricted -Scope CurrentUser

Issue: PowerShell blocked

If PowerShell scripts are blocked from being executed, try the code above to momentarily turn off restrictions or check your antivirus/security software settings for anything that hinders PowerShell. Lastly, look for Group Policy settings that could be blocking PowerShell scripts. Here’s how:

⚠️ This method requires admin privileges. 

  1. Press Win + S, type cmd, and select Command Prompt (Run as administrator).
  2. Type gpedit.msc, and hit Enter.
  3. If prompted by the User Account Control (UAC), click Yes.
  4. Using the left-hand pane, navigate to Computer Configuration > Administrative Templates > Windows Components > Windows PowerShell.
  5. Disable any policy settings that are blocking PowerShell scripts and try again.

Simplify file disposal with the “Show recycle confirmation” context menu

Intuitive controls like “Show recycle confirmation” unlock more granular control for IT support staff. This toggle switch is particularly handy for power users, as they need to frequently fine-tune system preferences. Removing unnecessary pop-ups optimizes the workflow, making these custom, on-demand options a must.

FAQs

The “Show Recycle Confirmation” option is a custom toggle added to the Recycle Bin’s right-click context menu. When selected, it switches the Windows ConfirmFileDelete registry value between 0 (no confirmation prompt) and 1 (prompt enabled), then restarts Explorer to apply the change immediately.

Yes, provided you follow the correct steps and back up your Registry beforehand. The key modified by this process (ConfirmFileDelete under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer) is a standard Windows policy value. It does not affect system stability. That said, always create a Registry backup before making any manual edits, as incorrect changes to other keys can cause system issues.

The most common cause is an incorrect Registry path or a missing string value. Navigate to HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\ShowRecycleConfirm and verify that all string values — (Default), Icon, and Position — are correctly configured. If the entry still doesn’t appear, restart Windows Explorer via an elevated Command Prompt using taskkill /f /im explorer.exe && start explorer.exe.

Yes. The .reg file method is the most efficient approach for multi-device deployment. You can distribute and run the .reg file silently using Group Policy Objects (GPO), a remote monitoring and management (RMM) tool, or a batch script. This makes it a practical option for IT administrators who need to standardize context menu options across an organization’s fleet of Windows 10 machines.

Open Registry Editor (Win + R > regedit) and navigate to HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell. Right-click the ShowRecycleConfirm key in the right-hand pane and select Delete. Click Apply, then OK, and restart your PC. The context menu option will no longer appear when right-clicking the Recycle Bin.

You might also like

Ready to simplify the hardest parts of IT?