title: how to delete every files extracted after extracting and doing required tasks?
body: <p>how to delete every files extracted after extracting doing required tasks?</p>
  
  <pre><code>files = glob.glob('*.tar.gz')
  
  for f in files:
      with tarfile.open(f, 'r:gz') as tar:
          tar.extractall()
  </code></pre>
  
  <p>I want to delete those extracted files here.</p>
  
  <p>os.remove() can be used, but i want to feed up the name of the files automatically through the first extracting process. how is it possible?</p>