'Return true if all of the output datasets associated with this job are
in the deleted state'

def check_if_output_datasets_deleted(self):

    for dataset_assoc in self.output_datasets:
        dataset = dataset_assoc.dataset
        if (not dataset.deleted):
            return False
    return True
