def clean_up_instance(self, task):

        _clean_up_boot_iso_for_instance(task.node)

        driver_internal_info = task.node.driver_internal_info
        driver_internal_info.pop('boot_iso_created_in_web_server', None)
        driver_internal_info.pop('root_uuid_or_disk_id', None)
        task.node.driver_internal_info = driver_internal_info
        task.node.save()

        ilo_common.cleanup_vmedia_boot(task)
Cleans up the boot of instance.
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/ilo/boot.py/IloVirtualMediaBoot.clean_up_instance