By default, to empty the Recycle Bin in Windows 11, you must minimize all your open windows, locate the Recycle Bin icon on your desktop, right-click it, and select “Empty Recycle Bin.” If you like to keep your desktop completely clean and hide all icons (including the Recycle Bin), emptying it becomes even more tedious, requiring you to open File Explorer first.
A much faster, more efficient workflow for power users is to embed the “Empty Recycle Bin” command directly into the standard desktop right-click context menu. This allows you to instantly clear your trash from anywhere on your desktop without needing a dedicated icon.
To achieve this, we need to add a custom key to the Windows Registry.
Important Warning
Editing the Windows Registry can cause system instability if you modify the wrong files. Always ensure you create a System Restore point or back up your registry before proceeding with these steps.
Step 1: Open the Registry Editor
- Press the Windows Key + R on your keyboard to open the Run dialog box.
- Type
regeditinto the text box and press Enter. Click “Yes” if prompted by User Account Control.
Step 2: Navigate to the Desktop Context Menu Keys
- In the Registry Editor, copy and paste the following path into the address bar at the top, and press Enter:
HKEY_CLASSES_ROOT\Directory\Background\shell - In the left-hand navigation pane, right-click on the shell folder.
- Select New > Key.
- Name this new key exactly:
Empty Recycle Bin. (This is the text that will actually appear in your context menu when you right-click the desktop).
Step 3: Define the Command
Now that the menu item exists, we must tell Windows what command to run when you click it.
- Right-click on your newly created Empty Recycle Bin key in the left pane.
- Select New > Key.
- Name this new sub-key exactly:
command(all lowercase). - Click on the new command key so it is highlighted.
- In the right-hand pane, you will see a value named (Default). Double-click it.
- In the “Value data” box, paste the following exact command string:
cmd.exe /c "echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin" - Click OK.
Step 4: Optional – Add an Icon
To make the menu item look official, you can assign the standard Recycle Bin icon to it.
- Click back onto your Empty Recycle Bin key in the left pane.
- Right-click in the empty space in the right pane, select New > String Value.
- Name the new string
Icon. - Double-click the
Iconstring and enter the following into the “Value data” box:shell32.dll,-32 - Click OK.
You do not need to restart your computer. Close the Registry Editor, go to your desktop, right-click any empty space, select Show more options (to bypass the condensed Windows 11 menu), and you will immediately see your brand new “Empty Recycle Bin” command, complete with a matching icon.