title: How to delete a file if it exists?
body: <p>How can I delete a file if exists in a directory with python 2.7 using <code>os / app</code>?</p>
  
  <p>I've tried with </p>
  
  <pre><code>os.remove('directory/file.png')
  </code></pre>
  
  <p>but if the item doesn't exist, I've got an error.</p>