code: def RemoveProcessedTaskStorage(self, task):
      
      if self._storage_type != definitions.STORAGE_TYPE_SESSION:
        raise IOError('Unsupported storage type.')
  
      processed_storage_file_path = self._GetProcessedStorageFilePath(task)
  
      try:
        os.remove(processed_storage_file_path)
      except OSError as exception:
        raise IOError((
            'Unable to remove task storage file: {0:s} with error: '
            '{1!s}').format(processed_storage_file_path, exception))
docs: Removes a processed task storage.
  
      Args:
        task (Task): task.
  
      Raises:
        IOError: if the storage type is not supported or
            if the storage file cannot be removed.
        OSError: if the storage type is not supported or
            if the storage file cannot be removed.