Add Delete Folder Contents To The Windows Context Menu

The WinVistaClub forum walks through a simple registry hack to empty a folder right from the Windows context menu—a time saving tweak for cleaning up your clutter. To apply the registry hack, you can create a new file in Notepad, paste in the contents of this registry hack, save the file with a .reg extension, and then double-click the saved file to enter the information into the registry. Once you've completed these steps, the new item will be available on the context menu—no need to reboot.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Delete Folder Contents]

[HKEY_CLASSES_ROOT\Directory\shell\Delete Folder Contents\command]
@="cmd /c \"cd /d %1 && del /s /q *.*"

If you'd rather use the point-and-click method, you can follow the instructions at the linked article—or check out our top 10 right-click tools.


Comments

    I really don't get why anyone would want this. Delete the contents of a folder and you're left with a useless, empty folder that you're forever doomed to waste time inspecting for files that don't exist, until you finally get fed up and delete it.

    What about "Temp" or "Recent"?

    So it you just don't rush, you'll find use for the tool.

    See? There are folders you need to delete their content from time to time, without the need to delete themselves.

    At the beginning of every school year, I empty out hundrends of user files so that they are fresh and clean for the new year. This looks like I will be able to highlight the folders, right click, and in one easy step they will be empty and ready to go. Has anyone tried this or a similar method on Server 2003? I would want to disable it after I used it, as it is a rather dangerous button to accidentally hit. Is there perhaps a simpilar way that I don't know about?

Join the discussion!