code: def CleanUp(self, path):
      
      try:
        if os.path.exists(path):
          os.remove(path)
      except (OSError, IOError) as e:
        logging.info("Failed to remove temporary file %s. Err: %s", path, e)
docs: Removes the temp file.