title: Removing a file with only the python file object
body: <p>Let's say that I open a file, that didn't previously exist, for writing:</p>
  
  <pre><code>f = open('/tmp/test.txt', 'w')
  </code></pre>
  
  <p>Once this line is executed the file '/tmp/test.txt' is created.  What is the cleanest way to remove (delete) the file with only the file object (f) and not the path?</p>