def cleanup_instance(xenapi, instance, vm_ref, vm_rec):
 xenapi._vmops._destroy(instance, vm_ref)

def cleanup_instance ( xenapi , instance , vm_ref , vm_rec ) : xenapi . _vmops . _destroy ( instance , vm_ref )
delete orphaned instances .