Posts Tagged ‘permanently delete files in windows’

Add a Context Menu to Permanently Delete Files in Windows 11 / 10

November 14th, 2022 by Admin

When you right-click a file and select Delete, or press the Delete key on the keyboard, Windows will move the file to the Recycle Bin by default. To permanently delete that file, you have to empty the Recycle Bin. In this tutorial we’ll show you how to add “Permanently delete” to context menu in Windows 11 / 10, which can help you permanently delete files without sending them to Recycle Bin.

How to Add a Context Menu to Permanently Delete Files in Windows 11 / 10

  1. Open Registry Editor and navigate to the location: HKEY_CLASSES_ROOT\AllFilesystemObjects\shell. In the left sidebar, right-click the shell key and select New -> Key.

  2. Name the new key Windows.PermanentDelete and select it. In the right pane, right-click the blank area and choose New -> String Value.

  3. Name the new DWORD ExplorerCommandHandler, and then double-click it and set its value data to {E9571AB2-AD92-4ec6-8924-4E5AD33790F5}.

  4. Use the same method to create another three different string values: Icon, Position and CommandStateSync. Set the value data of Icon to shell32.dll,-240. The value data of Position could be Top or Bottom, while leaving the value data of CommandStateSync to be empty.

  5. Close Registry Editor. When you right-click any folder or file, you’ll see the “Permanently delete” option appear in the top or bottom of the context menu.

  6. When you click the “Permanently delete” option, a pop-up dialog will ask you to confirm before permanently deleting your chosen folder or file.

That’s it!