You are reading a single comment by @aggi and its replies. Click here to read the full conversation.
  • Struggling with search terms for this on Google.

    In W10 there is a parent(?) folder with files and subfolders some of which have more subfolders. I regularly need to delete all the files inside but keep all the folders.

    Is there an easy way to do this?

    Cheers

  • Easiest way is to go into the folder, search by * sort it so that folders are at the bottom or top and just highlight everything else and delete.

    If you want to automate it then

    del c:\myfolder\*.*? /s
    

    should do it.

About

Avatar for aggi @aggi started