How To Delete/Empty The Contents Of Any Folder Easily
Have you ever wanted to delete the contents of particular folder and just leave the folder empty?. you can just delete the whole folder and Re-Create empty folder but this just waste of time you can create new command and add it to contest menu item.
A small registry edit can do this job for you. Preferably, you should define a context command so that you find the process easy. This will create a context menu item which lets you delete contents of folders without affecting the folder structure.
To add the context menu item,
- Open the registry Editor ‘Start > Run’ and type ‘regedit’.
- In the registry, navigate to the ‘HKEY_ CLASSES_ROOT\Directory\shell’ .
- Right click on ‘shell’ and create ‘New > Key’‘ with the value “Empty Folder Contents” .
- Then create the ‘command’ sub key in the same way.
- Select the “command” key you just created then on the right side open ‘Default’ by right-clicking on it and choose Modify and fill it with the following:
‘cmd /c “cd /d %1 && del /s /f /q *.*’
The new command ‘Empty folder contents’ will be displayed in the context menu for folders immediately after you close the registry Editor.
Now whenever you need to empty the contents of any folder, just right click on the folder and choose ‘Empty Folder Contents’ from the context menu .
Related posts:


