How to Add or Remove Permanently Delete Option to Context Menu in Windows

So one day you're ready to clean the unwanted images, videos, documents, and other data from your system. You remove them by right-clicking on them, choosing the Delete option in the context menu, or pressing the Delete key. Now, you must be aware that simply using the Delete option/key doesn't permanently delete files but sends the files to Recycle Bin, further allowing you to recover deleted files. And it's good because if you mistakenly delete something important, Recycle Bin lets you restore it quickly.

However, some users want their files to be gone in one go. One way to do it is by using the Shift + Delete key. But what if you can delete files permanently with just one click? Things would be sorted. Right! It is possible. You can add or remove the Permanently Delete option in the Windows Context Menu. How? Here's how to do it.

Add the Permanently Delete Option to the Context Menu via Registry Editor

When you right-click a file or folder, you get multiple options such as Edit, Copy, Cut, Delete, Share, etc. But the Permanently Delete option is not there. It means that you can't delete a file with a single click. The file would reach Recycle Bin, and you'd need to open that folder to remove the files forever.

If you want to save yourself from this double effort to remove your data, adding the Permanently Delete option to the context menu is the way. You can edit the context menu via Registry Editor with the following steps:

Note: It'd be better to keep a backup and restore the Registry before performing the instructions. You could restore things to normal with the backup if something goes wrong.

  • Go to Windows Search, type Registry Editor, and click Open.
type registry editor in windows search
  • You can also press Windows + R to open the Run dialog box. There, type regedit and hit Enter.
type regedit in run dialog box
  • Now, double-click on HKEY_CLASSES_ROOT and find AllFilesystemObjects.
expand all file system objects in registry editor
  • Expand AllFilesystemObjects and there locate Shell.
locate shell under all file system objects
  • Right-click on the shell and then follow New > Key.
right-click-on-shell-and-create-new-key
  • Now, enter Windows.PermanentDelete to name this key under the shell.
name new key windows permanent delete
  • Now that the Windows.PermanentDelete key is created; you'd need to build four string values under it. So, for the first string, right-click on Windows.PermanentDelete key and follow New > String Value.
create new windows permanent delete value
  • Now, name that string - CommandStateSync. If you can't name it, right-click on it, select Rename and then enter the name.
name new string value command state sync
  • For the second string value, right-click on the blank space in the right panel under the first string value, and there follow New > String Value. Then, type ExplorerCommandHandler and hit Enter.
name second string value explorer command handler
  • Next, double-click on the Modifier Window, copy - E9571AB2-AD92-4ec6-8924-4E5AD33790F5, and paste it into the Value data box > OK.
enter value in the value data box
  • Create a third-string value as you created the second and name it Icon.
  • Double-click Icon to open Modifier Window and copy-paste the shell32.dll,-240 in the Value data box; click OK.
enter shell32dll in value data box
  • Doing so will add a Red Delete Cross icon next to the Permanently Delete text in the Context Menu.
  • Lastly, create a fourth string value following the same steps for the second and third string, and name it Position.
  • Open Modifier Window for Position, type Bottom in the Value data box, and click OK.
type bottom in value data box
  • The fourth string – Position, decides the placement of the Permanently Delete option in the context menu.
  • As we have added the value – Bottom to this string, the option will appear at the bottom of the context menu.
  • Close the Registry Editor, go to File Explorer, and right-click on any file or folder. Check if you can see the Permanently Delete option in the Context Menu.
  • To access it, you'd need to click Show more options after right-clicking on the file/folder and then confirm the delete action.
permanently delete option will reflect in context menu


Important:  Permanently deleted files will be removed from their existing place, and you won't be able to find them in Recycle bin. So, if you accidentally deleted some important files, use your backup to restore them. Moreover, if the backup isn't available, permanently deleted file recovery is possible with a data recovery solution, such as Stellar Data Recovery Software. It supports the recovery of all file types from Windows systems and storage media drives, such as SSDs, HDDs, USB drives, etc.

Remove the Permanently Delete Option in the Context Menu

If you don't want the Permanent Delete option, you can edit the Windows Context Menu easily by following the given steps:

  • Open Registry Editor as discussed above and follow HKEY_CLASSES_ROOT > AllFilessystemObjects > Windows.PermanentDelete.
  • Right-click on Windows.PermanentDelete and click Delete.
delete windows permanent delete option in registry editor
  • Now, check, and you'll find the Permanently Delete option no longer exists in Context Menu.
no option to delete any content permanently in context menu

It is sure handy to have a Permanently Delete option in Context Menu to delete unwanted files, folders, and other data in just one click. But be careful as an abrupt action may cost you important data. However, permanently deleted file recovery is possible with reliable data recovery software.



Was this article helpful?
FAQs
The Registry Editor in Windows is a hierarchical tool where you can view and change the low-level settings for OS and applications. It allows administrative and advanced users to keep the Registry operational and make root-level or administrative-level changes, including changes in hardware/software level configuration and setting up access permission, etc.
Microsoft recommends not to edit the Registry Editor unless you have no other way to change the system configurations or fix the issues. If you mess up, it may cause serious system errors
You can add or remove this option in the context menu via Registry Editor by following the steps in this article. However, it is strictly advised not to perform any hit-and-trial way to edit the Registry Editor otherwise.
Yes. You can use a powerful data recovery solution, such as Stellar Data Recovery Software to recover all data types. It supports recovery in case of accidental/permanent data deletion, hard drive formatting, corruption, and malware attack.
About The Author
author image
Mansi Verma linkdin Icon

Technology writer with over 5 years of experience

Table of Contents

WHY STELLAR® IS GLOBAL LEADER

Why Choose Stellar?
  • 0M+

    Customers

  • 0+

    Years of Excellence

  • 0+

    R&D Engineers

  • 0+

    Countries

  • 0+

    PARTNERS

  • 0+

    Awards Received