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 Add an option to delete all the folder content to the Right Click Context Menu delete

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

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

Start by going to the desktop of your Windows installation

 

Schermafbeelding 2014-09-27 om 10.34.55 Add an option to delete all the folder content to the Right Click Context Menu delete

Click start and type regedit in the search box and open by hitting enter

 

Schermafbeelding 2014-09-27 om 10.36.53 Add an option to delete all the folder content to the Right Click Context Menu delete

In Regedit, go to: HKEY_CLASSES_ROOT\Directory\shell

 

Schermafbeelding 2014-09-27 om 10.37.14 Add an option to delete all the folder content to the Right Click Context Menu delete

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 Add an option to delete all the folder content to the Right Click Context Menu delete

Select the Delete Folder Contents, right-click and create a new key named command

 

Schermafbeelding 2014-09-27 om 10.40.19 Add an option to delete all the folder content to the Right Click Context Menu delete

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 Add an option to delete all the folder content to the Right Click Context Menu delete

Close the regedit editor and restart your computer to activate the changes.

What's your reaction?
Solved it!
0%
Helped me
0%
Didn't work
0%
Inaccurate Information
0%
About The Author
Pepijn van Gastel
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 Response