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.

delete-folder-files

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 ] 

You can follow us on Twitter or join our Facebook Fan Page for more updates like this and You can also ask a problems related to computers or technology on Ask Technix Update and get your solutions faster.

Other Related Interesting Articles

Author + Admin: Abhishek Bhatnagar
- Professional blogger by passion, Software Enggineer. I love to write about useful computer tips & tricks. Connect with me at twitter or on google+ profile or mail me at abhishek@technixmedia.com or know me more on www.abhishekbhatnagar.com

4 Comments

  1. Ishwar says:

    Cool man I have chkd it its great keep it up …………..

    :-)

  2. spplutchok says:

    Please clarify what “key and name it as command” means. I totally don’t understand…

  3. abhishek says:

    @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.

  4. TS says:

    hey, check with you. is it possible to just make one folder with that extension?

Leave a Reply