How to Add Secure Delete to Recycle Bin Context Menu in Windows 10
The Recycle Bin provides a safety net when deleting files or folders. When you delete any of these items from your hard disk, Windows places it in the Recycle Bin and the Recycle Bin icon changes from empty to full.
If you have multiple hard drives, partitions, or an external hard drive connected to your PC, each location will have its own $Recycle.Bin and Recycle Bin settings. Removable drives, such as USB flash drives and memory cards, will not have a Recycle Bin. Files deleted from removable drives are permanently deleted.
When you delete a file or folder in Windows, the item(s) get placed in the Recycle Bin by default until you empty the Recycle Bin to permanently delete them if you didn't want to restore them.
However, permanently deleting a file or folder doesn't secure delete them.
Secure Delete will delete and overwrite a file or folder to securely erase any data that exists in the unallocated portions of a disk for the deleted file or folder so it gone forever and cannot be recovered.
If you like, you can add Secure Delete to the Recycle Bin context menu that will secure erase all items (files and folders) in the Recycle Bin deleted from the "C:" drive for the current user.
The Secure Delete context menu will perform 3 passes to securely erase only the items in the Recycle Bin deleted from the "C:" drive for the current user, and will restart explorer to refresh the Recycle Bin icon. If you would prefer to have more passes, then please post a reply in this tutorial requesting it, and I'll post an updated .reg file for it. If you would like to have the Recycle Bin of other drive letters included, then please post a reply in this tutorial requesting it, and I'll post an updated .reg file for it.
This tutorial will show you how to add Secure Delete to the Recycle Bin context menu for all users in Windows 7, Windows 8, and Windows 10.
While you must be signed in as an administrator to add or remove the context menu, all users will be able to use the context menu.
The first time you use the context menu, SDelete may prompt you to Agree to the license terms before continuing. You will not see the prompt again afterwards.
Contents
- Option One: Add "Secure Delete" to Recycle Bin Context Menu
- Option Two: Remove "Secure Delete" from Recycle Bin Context Menu
- Option Three: Add or Remove "Secure Delete" with Confirmation Recycle Bin Context Menu
EXAMPLE: "Secure Delete" context menu for Recycle Bin
1 Download the latest version of SDelete by Mark Russinovich from Microsoft Sysinternals below.
2 Save the SDelete.zip file to your desktop.
3 Unblock the downloaded SDelete.zip file.
4 Open the SDelete.zip file.
5 Open the C:\Windows\System32 folder in a separate File Explorer (Win+E) window.
6 Copy and paste (drag and drop) the sdelete.exe file from the SDelete.zip file into the C:\Windows\System32 folder. (see screenshots below)
7 When prompted, click/tap on Continue to approve. (see screenshot below)
8 You can now close the ZIP and File Explorer windows if you like.
9 Click/tap on the Download button below to download the file below.
Add_Secure_Delete_to_Recycle_Bin_context_menu.reg
Download
(Contents of REG file for reference)
Code:Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureDelete] @="Secure Delete" "NoWorkingDirectory"="" "Position"="top" "Icon"="imageres.dll,-5305" [HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureDelete\command] @="cmd /v /c \"sdelete -p 3 -s \"!SystemDrive!\\$Recycle.Bin\\*\" && powershell -NoLogo -NoProfile -WindowStyle Hidden -Command \"& {Add-Type shell32 '[DllImport(\\\"shell32.dll\\\")] public static extern int SHUpdateRecycleBinIcon();' -Namespace System; [shell32]::SHUpdateRecycleBinIcon(); Start-Sleep 1}\"\""
10 Save the .reg file to your desktop.
11 Double click/tap on the downloaded .reg file to merge it.
12 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.
13 You can now delete the downloaded .reg file if you like.
This is the default setting.
1 Click/tap on the Download button below to download the file below.
Remove_Secure_Delete_from_Recycle_Bin_context_menu.reg
Download
(Contents of REG file for reference)
Code:Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\SecureDelete]
2 Save the .reg file to your desktop.
3 Double click/tap on the downloaded .reg file to merge it.
4 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.
5 You can now delete the downloaded .reg file if you like.
Special thank you to our member Matthew for providing this option.
1 Click/tap on the Download button below to download the BAT file below.
2 Save the .bat file to your desktop.
3 Unblock and run the downloaded .bat file.
4 If prompted by (UAC), click/tap on Yes to approve.
5 Press the number 1, 2, or 3 for what you want when prompted by the command prompt. (see screenshot below)
6 If you added the "Secure Delete" context menu to the Recycle Bin, users will see the confirmation prompt below whenever the "Secure Delete" context menu is used. (see screenshot below)
That's it,
Shawn Brink
Related Tutorials
- How to Add Secure Delete to Context Menu in Windows 10
- How to Add Permanently Delete to Context Menu in Windows 10
- How to Empty Recycle Bin in Windows 10
- How to Add Empty Recycle Bin to Context Menu in Windows 10
- How to Set Recycle Bin to Permanently Delete Files Immediately in Windows 10
- How to Turn On or Off Recycle Bin Delete Confirmation in Windows 10
- How to Specify when Storage Sense Delete Files in Recycle Bin in Windows 10
- How to Use Cipher Command to Overwrite Deleted Data in Windows
- How to Add Show Recycle Confirmation to Recycle Bin Context Menu in Windows 10