How To: Add Delete Folder Contents Option To Windows 7/Vista Right Click Context Menu

With a simple windows registry tweak you can add the option Delete Folder Contents to the right-click context menu which appears when you right-click a folder in Windows 7 or in Windows Vista.This would come handy at times when you want to delete all the files inside a folder and all it’s sub-folders without deleting the folders themselves.

Method 1:

HKEY_CLASSES_ROOT\Directory\shell


Method 2:

Open a new file in Windows 7/ Windows Vista Notepad editor and paste thje code of this registry hack and then save the file with a .reg extension, and then double-click the saved file to enter the information into the Windows 7/ Windows Vista registry.

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 *.*”

Once you’ve completed these steps, the new item will be available on the context menu and no need to reboot.

Alternate Method:

Download, extract, and double-click on Empty-folder-contents.reg to merge the registry values into the Windows registry and thus you can add the option Delete Folder Contents to the right-click context menu in Windows 7 or in Vista.

Add Delete Folder Contents to Right Click Context Menu

Warning: Modifying the Windows registry can cause serious damage to your Windows Operating System.It is better to backup your Windows registry data before making any changes. Tomstricks.com is not responsible for any changes you may make to your system.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

Popularity: 6%

Did You Like This Post? Then You Might Find These Also Interesting:

Written by Tony on February 21st, 2009 with no comments.
Read more articles on Vista How To? and W7 Features and W7 Tweaks.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .