@classmethod
def _cleanup_iso_image(cls, task):
    """Deletes the ISO if it was created for the instance.

        :param task: an ironic node object.
        """
    iso_object_name = cls._get_iso_image_name(task.node)
    cls._unpublish_image(iso_object_name)
