Remove "Delete" option from Windows 7 Context Menu?

6,853

Solution 1

For delete i use the DEL key so i have no need for the context menu option.

In that case, just get used to using F2 for Rename.

I looked into editing the registry to shorten context menus in Windows, but I only found ways to remove entries made by third-party programs (and possibly added Microsoft programs).

Solution 2

I think that the menu in question is at least in part in the shell32.dll.mui file, located @

windows\system32\en-us (depending on your OS region/language)

Using resource hacker, you need to modify menu 210 several menus! (Ctrl+Find "&Delete", F3 to Find Next :)

MENUITEM "Cu&t", 24, MFT_STRING, MFS_ENABLED
MENUITEM "&Copy", 25, MFT_STRING, MFS_ENABLED
MENUITEM "&Paste", 26, MFT_STRING, MFS_ENABLED
MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "Create &shortcut", 16, MFT_STRING, MFS_ENABLED
MENUITEM "Rena&me", 18, MFT_STRING, MFS_ENABLED
MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED

the question is, IF I remove the delete context menu entry #17 entries, is the delete function (via that why-are-you-so-close-to-my-home-key-DELETE button) similarly disabled? Let's see.

NB: 64-bit users also need to modify the file @ windows\syswow64...

You may need to take ownership of the files first (I recommend googling 'add take ownership to context menu') copy the file (shell32.dll.mui), then modify and save changes to the copy (after compiling in resource hacker), THEN replace the sys file (backup by renaming original to shell32.dl.mui.whateveryouwant)with the copy. FINALLY, run mcbuilder (in sys32)... Gonna try it now, on a new build I've mounted to E: here's an illustration:

Solution 3

There appears to be no way to remove/disable the predefined options (ie, Delete).

Solution 4

I found a link to remove the delete command from the recycling bin context menu @ http://www.winhelponline.com/articles/142/1/How-to-hide-the-Delete-command-from-Recycle-Bin-context-menu-in-Windows-Vista.html, so there may be hope...still looking.

Share:
6,853

Related videos on Youtube

TMRW
Author by

TMRW

Not much to say :D

Updated on September 17, 2022

Comments

  • TMRW
    TMRW almost 2 years

    Well it ever so often happens that I want to click rename and I end up clicking delete.For delete I use the DEL key so I have no need for the context menu option.

    I have tried several programs but unfortunately they only remove context menu items added by third party programs or some Windows´s own thing that I don't want to remove.

    I found one program that potentially could do what I want it to(not 100% sure tho): here but for some reason I can't get it to work.

    I made a small mockup how it looks now and how I want it to look:

    enter image description here

    Alternatively if this can't be removed then maybe there's a way to make it do nothing (without breaking the delete functionality globally) or make it greyed out?

  • TMRW
    TMRW over 13 years
    Ok.I guess i have to live with it then.Thanks for the answers.
  • Wouter
    Wouter over 8 years
    It's a useful suggestion, but not an answer to the question.
  • Naidim
    Naidim over 8 years
    @Wouter But it was good enough for the person who asked the question and it appears that there is no full answer.
  • Wouter
    Wouter over 8 years
    @paradroid: never mind, seems i was misinformed on what "accepted answer" means. It does indeed make more sense to repost the question if I'm looking for another solution.