Most pythonic way to delete a file which may not exist
<p>I want to delete the file <code>filename</code> if it exists.  Is it proper to say</p>

<pre><code>if os.path.exists(filename):
    os.remove(filename)
</code></pre>

<p>Is there a better way? A one-line way? </p>
