Home / Articles / Windows / Windows 7 / How to delete folder content from the context menu

How to delete folder content from the context menu

How to delete folder content from the context menu
 
How to delete folder content from the context menu
  • Currently 0 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 0/5 (0 votes cast)

Thank you for rating!

You have already rated this page, you can only rate it once!

Your rating has been changed, thanks for rating!

Log in or create a user account to rate this page.


Sometimes it is necessary to delete the contents of frequently used folders without deleting the folder itself, to speed up this process, you can create an appropriate command in the Explorer's context menu. It's very simple just follow these instructions:

1) In the search box in the start menu, type regedit, press Enter to launch the Registry Editor;

regedit

2) In the editor, open route HKEY_CLASSES_ROOT\Directory\shell;

Registry Editor

3) Then, create a section "DeleteFolderContent" in this thread (right-click within the section New → Key);

Registry Editor 2

4) In the created section set "MUIVerb" string parameter with value "Delete Folder Content";

Registry Editor 3
Registry Editor 4

5) Then in the section "DeleteFolderContent" create subfolder "command" (see point 3 - Right-click within the section  New → Key);

6) and the value (by default) of the section "command" should be changed to:

<span>cmd /c "cd /d %1 && del /s /f /q *.*"</span>
Registry Editor 5

Then in the context menu of Windows Explorer you will see "Delete Folder Content"

DeleteFolderContent

It is worth noting that the files are permanently deleted, i.e. do not go into the trash. Only the files are deleted but subfolders should remain. 


 

Read also

Disk cleanup in Windows 7

Disk cleanup in Windows 7

Log in or create a user account to post a comment.

easyos.net
117217982212577402640

Quick navigation

General navigation