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
- Press Win + R, type
regedit, and hit Enter. - If prompted by the User Account Control (UAC), click Yes.
- Using the Registry Editor’s address bar, navigate to the following directory:
HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell
- On the left-hand pane, right-click on the shell key and select New > Key.
- Name it ShowRecycleConfirm and press Enter.
- Name the context menu option.
- Right-click on a space in the right pane and select New > String Value.
- Name it (Default) and press Enter.
- Double-click on (Default) to modify its value.
- In the Value field, type Toggle Recycle Confirmation.
- Click OK.
- Assign an icon (optional).
- Right-click on a space in the right pane and select New > String Value.
- Name it Icon and press Enter.
- Double-click on Icon to modify its value.
- In the Value field, type
imageres.dll,-5302. - Click OK.
- Decide where it’s placed on the context menu.
- Right-click on a space in the right pane and select New > String Value.
- Name it Position and press Enter.
- Double-click on Position to modify its value.
- In the Value field, type Top.
- Click OK.
- Right-click on ShowRecycleConfirm and select New > Key.
- Name it command and press Enter.
- Double-click on command to modify its value.
- 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.
- Click Apply, then OK.
- 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).
- Press Win + S, type Notepad, and hit Enter.
- 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 }\""
- Press Ctrl + S and name the file Add_ToggleRecycleConfirm.reg.
- Choose the All files file type and hit Enter.
- Open the file to apply the Registry settings. Alternatively, run the script through automation tools to deploy the .reg file across multiple workstations.
- When prompted by the UAC, click Yes.
- 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).
- Press Win + S, type Group Policy Management, and hit Enter.
- In the left-hand pane, navigate to your target Organizational Unit (OU).
- Right-click the OU and select Create a GPO in this domain, and Link it here.
- Name the GPO (e.g., Recycle Bin Confirmation Policy) and click OK.
- Right-click the new GPO and select Edit.
- In the Group Policy Management Editor, navigate to: User Configuration > Preferences > Windows Settings > Registry
- Right-click Registry and select New > Registry Item.
- 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)
- Click OK.
- Close the Group Policy Management Editor.
- 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
- Log in to your NinjaOne dashboard.
- Navigate to Administration > Library > Scripting.
- Click Add and select PowerShell as the script type.
- 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
- Save the script and navigate to Devices.
- Select your target devices or device group.
- 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:
- Host the .reg file in an accessible location (e.g., a network share or your RMM’s file library).
- Use the following PowerShell command as your deployment script:
powershell
regedit.exe /s "\\yourserver\share\Add_ToggleRecycleConfirm.reg"
Stop-Process -Name explorer -Force
- 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:
- Press Win + R, type regedit, and hit Enter.
- If prompted by the User Account Control (UAC), click Yes.
- Using the Registry Editor’s address bar, navigate to the following directory:
HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell
- In the right-hand pane, right-click the ShowRecycleConfirm key and select Delete.
- Click Apply, then OK.
- 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
- Press Win + R, type regedit, and hit Enter.
- If prompted by the User Account Control (UAC), click Yes.
- Using the Registry Editor’s address bar, navigate to the following directory:
HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\ShowRecycleConfirm
- Ensure that each string’s values are set properly.
- Click Apply, then OK.
Restart Windows Explorer to apply changes
- Run an elevated Command Prompt.
- 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.
- Press Win + S, type cmd, and select Command Prompt (Run as administrator).
- Type
gpedit.msc, and hit Enter. - If prompted by the User Account Control (UAC), click Yes.
- Using the left-hand pane, navigate to Computer Configuration > Administrative Templates > Windows Components > Windows PowerShell.
- 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.

