Delete the Contents of a Folder Without Even Opening It

28.04.2009

3. Right-click on shell, choose New, Key, and name it Delete Folder Contents.

4. Right-click on the new Delete Folder Contents key, choose New, Key, and name it command.

5. In the right pane, double-click on the Default string value, and then copy/paste this text: cmd /c "cd /d %1 && del /s /q *.*

6. Click OK, exit the Registry, and you're good to go.

Now you can right-click on any folder (without actually opening it first) and you should see the new Delete Folder Contents option.