title: Delete all content in folder with Python
body: <p>Following <a href="https://stackoverflow.com/questions/185936/delete-folder-contents-in-python">this answer</a>, I'm trying to delete the contents of a folder with this code</p>
  
  <pre><code>import os
  import glob
  
  files = glob.glob('/YOUR/PATH/*')
  for f in files:
      os.remove(f)
  </code></pre>
  
  <p>But python returns an Attribution Error "'str' object has no attribute 'remove'". What am I'm doing wrong?</p>