There have been many times where I’ve wanted to clean the slate and empty a folder on the desktop or my docs. For whatever reason, I need to import new files with updated files or I just simply want the folder to be empty. Unfortunately the only way of going about this is by manually deleting all of the files in the folder. Not anymore…

A simple Windows registry hack allows you to empty the contents of a folder, as you would the recycle bin. Follow these simple instructions for Windows XP and Vista:
- Right-Click on the desktop and select New>Text Document.
- Double-Click on the text document and paste the following code in:
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOTDirectoryshellDelete Folder Contents]
[HKEY_CLASSES_ROOTDirectoryshellDelete Folder Contentscommand]
@=”cmd /c ”cd /d %1 && del /s /q *.*” - After applying that code, make sure you save the file as a .REG file, not a .TXT file.
- That’s all it takes. You’ll now have the option on your right-click context menu.
A quick hack to get you emptying folders at will.
Related posts:


Fri, Feb 20, 2009
Windows