def instance_destroy(context, instance_uuid, constraint=None, update_cells=True):
 rv = IMPL.instance_destroy(context, instance_uuid, constraint)
 if update_cells:
  try:
   cells_rpcapi.CellsAPI().instance_destroy_at_top(context, rv)
  except Exception:
   LOG.exception(_('Failed to notify cells of instance destroy'))
 return rv

def instance_destroy ( context , instance_uuid , constraint = None , update_cells = True ) : rv = IMPL . instance_destroy ( context , instance_uuid , constraint ) if update_cells : try : cells_rpcapi . CellsAPI ( ) . instance_destroy_at_top ( context , rv ) except Exception : LOG . exception ( _ ( 'Failed to notify cells of instance destroy' ) ) return rv
destroy the instance or raise if it does not exist .