'If ``delete_on_gc`` was set to true when this
``PickleCorpusView`` was created, then delete the corpus view\'s
fileid.  (This method is called whenever a
``PickledCorpusView`` is garbage-collected.'

def __del__(self):

    if getattr(self, '_delete_on_gc'):
        if os.path.exists(self._fileid):
            try:
                os.remove(self._fileid)
            except (OSError, IOError):
                pass
    self.__dict__.clear()
