title: Is it possible to delete all subfolders in a specific folder without hard-coding them or deleting anything else?
body: <p>I was wondering if it was possible to delete all of the subfolders in a folder without deleting other files with AutoHotKey. For example, if I have a folder named &quot;ASDF&quot;, and I have 3 subfolders and a required essay in it, is there a way to delete ONLY the folders, without naming them in the code (say one of the folders was named &quot;FDSA&quot;, I want to write the script in a way such that the name is not included in the code)? I have tried using the &quot;FileRemoveDir&quot; Function but it does not seem to work. Here is the code I have so far:</p>
  <pre><code>FileSetAttrib, -RASH, %A_Desktop%\FileName\*
  FileDelete, %A_Desktop%\FileName\*
  FileRemoveDir, %A_Desktop%\FileName\*, 1
  
  
  FileSetAttrib, -RASH, %A_MyDocuments%
  FileDelete, %A_MyDocuments%\*
  FileRemoveDir, %A_MyDocuments%\*, 1
  return
  </code></pre>
  <p>If it helps at all, I run on a windows computer.
  Answers will be appreciated, thak you!</p>