Add an option to delete all the folder content to the Right Click Context Menu

It can be a real struggle to delete all the files in different folders. You can though all the folder and sub folders one by one, but that could take a lot of time if you are like me and have a lot of files in different sub folders. to make this proses easier we are going to add the ‘Delete Folder Contents’ option to the right-click context menu which appears when you right-click on a folder.

Delete Folder Contents

Adding ‘Delete Folder Content’ to the Right Click Context Menu

Start by going to the desktop of your Windows installation

 

Schermafbeelding 2014-09-27 om 10.34.55
Click start and type regedit in the search box and open by hitting enter

 

Schermafbeelding 2014-09-27 om 10.36.53
In Regedit, go to: HKEY_CLASSES_ROOT\Directory\shell

 

Schermafbeelding 2014-09-27 om 10.37.14
In the regedit editor, right-click on the Shell map, create a new Key and name it Delete Folder Contents

 

Schermafbeelding 2014-09-27 om 10.37.47
Select the Delete Folder Contents, right-click and create a new key named command

 

Schermafbeelding 2014-09-27 om 10.40.19
Click the command folder, and in the right panel double-click on (Default) string value and type cmd /c “cd /d %1 && del /s /q *.* in the value data field and hit OK

 

Delete Folder Contents
Close the regedit editor and restart your computer to activate the changes.
About the Author

Pepijn has always been passionate about technology, but found his vocation in medicine. As of today he has focused it's experience on his new startup company PuurHost.nl and is therefore not an active participator of WindowsInstructed anymore.

Leave a Reply

Your email address will not be published. Required fields are marked *