code: def clean(self):
          
          if not self._save_temp:
              if hasattr(self, '_written_files'):
                  map(os.unlink, self._written_files)
              if getattr(self, '_remove_tempdir_on_clean', False):
                  shutil.rmtree(self._tempdir)
docs: Delete temp dir if not save_temp set at __init__