title: Python Deleting All Folders but not files
body: <p>I am looking to write a piece of python code that deletes all folders and their contents, but does not delete individual files.<br>
  For example here are some files and folders contained in a directory (Folder B) along with the script file that does the deleting. How do I delete folderA, folderB,folderC,etc, but leave the files?  Thanks </p>
  
  <pre><code>/Folder B 
      file.docx
      fileB.docx
      fileC.docx
      pythonDeleteScript.py
      folderA/
      folderB/
      folderC/
      folderD/
  </code></pre>