Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

First, I'm running Windows XP Home Edition Service Pack 3.

Is there any way to disable the permanent delete? Normally, deleted files go to the Recycle Bin. Can I disable the bypass-recycle-bin-delete thing? Or change the permanent-delete command from Shift+Delete to something else?

Basically, I want to require that all files have to pass through the Recycle Bin in order to be deleted.

share|improve this question
even if there was a way the user could still empty the recycle bin. – Ramhound Sep 30 '13 at 21:17

You can use AutoHotKey to disable this key-combination.

  1. Right-click an empty spot on your desktop or in a folder of your choice.
  2. In the menu that appears, select New -> AutoHotkey Script. (Alternatively, select New -> Text Document.)
  3. Type a name for the file, ensuring that it ends in .ahk. For example: Test.ahk
  4. Right-click the file and choose Edit Script.
  5. On a new blank line you have to insert this script in the file.

    +Delete::Send {Delete}

This will block the shift + delete - keystroke and will only execute the command like just the "del" key was pressed.

You can also add a line that will disable the possibility to permanent delete this in context-menu. *But that will also block any other shift + rightclick-operation and won't work if the user first pressed the shift-key. *

  1. Save and close the file.
  2. Double-click the file to launch it. A new icon appears in the taskbar notification area.
  3. Test your script.
  4. To exit or edit the script, right-click the green "H" icon in the taskbar notification area.


But as mentioned in the comments, the user can still delete the files from the recycle-bin. And also he can still delete it if he first rightclick and than presses shift. So it's just to prevent users a bit.

share|improve this answer
This is the best know solution. I would however completely block the shift+delete (with this method) so you'll learn not to use it anymore (for if you're behind system without this solution). Also, this won't work if you delete via right-click and then clicking "Delete" while holding the shift. – Rik Sep 30 '13 at 21:39
Your script is not correct. It should be +Delete::Send {Delete}. Yours gives an error. – Rik Sep 30 '13 at 21:45
Thanks for your input. I've edited my answer. Also i've added the possibility to disable the shift + right-click. Thanks. :) – Christian Woerz Sep 30 '13 at 21:50
The right-click and then Delete in context menu + shift doesn't work. Its not the Right-click that needs to be addressed but the left-click on Delete with Shift. You can't do that in AutoHotKey. – Rik Sep 30 '13 at 21:53
Edited it again. Sry I'm on mac at the moment. But the other script: `+RBUTTON::return`` works? – Christian Woerz Sep 30 '13 at 21:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .