Delete All The Files Inside A Folder Quickly With Right Click Context Menu Option [ Windows Tip ]
ADVERTISEMENTS
This small windows trick is based on registry and could prove very useful when ever you want to delete all the files inside a folder very quickly with minimum user effort. This small registry hack will add an entry Delete Folder Contents to the right click context menu which appears when you right click a folder in windows.
We have written about some other tips which allows to toggle hidden files from right click context menu, Explorer hangs on right click on the drive, Toggle Hide File Extensions and how to add Favorite Programs In Desktop Right Click Context Menu
Follow the procedure below to implement delete folder contents trick in any version of windows,
1. Go to start menu >> run prompt and type regedit and press Ok button. [ This will open registry ]
2. In registry navigate to the following path
HKEY_CLASSES_ROOT\Directory\shell
3. Right click on shell in left pane and select New >> Key, name the key as Delete Folder Contents
4. Right click the Delete Folder Contents in left pane and select new >> key and name it as command
5. In right pane double click the default string value and type the following in the value data feild
cmd /c "cd /d %1 && del /s /q *.*
6. Press Ok, close registry and that’s it done.
Now you can right click any folder and delete all its contents just by selecting the option in right click context menu which says Delete Folder Contents.
Note: This trick also works on windows 7 as I have checked for the same
[ Thanks Windows Forums For This Hack ]
Author + Admin: Abhishek BhatnagarSoftware Engineer by profession and blogger by passion, I blog about computer tips and tricks and solutions for computer problems. You can connect with me at twitter or know more about me on www.abhishekbhatnagar.com.


















Cool man I have chkd it its great keep it up …………..
Please clarify what “key and name it as command” means. I totally don’t understand…
@spplutchok – key is the registry entry u need to create, u will get it properly once u do it as it said in the post step by step – let me know if you face any problem.