def delete_mig(mig):
 changed = False
 return_data = []
 actions_filter = ['NONE', 'CREATING', 'RECREATING', 'DELETING', 'ABANDONING', 'RESTARTING', 'REFRESHING']
 instance_names = _get_instance_list(mig, filter_list=actions_filter)
 if mig.destroy():
  changed = True
  return_data = instance_names
 return (changed, return_data)

def delete_mig ( mig ) : changed = False return_data = [ ] actions_filter = [ 'NONE' , 'CREATING' , 'RECREATING' , 'DELETING' , 'ABANDONING' , 'RESTARTING' , 'REFRESHING' ] instance_names = _get_instance_list ( mig , filter_list = actions_filter ) if mig . destroy ( ) : changed = True return_data = instance_names return ( changed , return_data )
delete a managed instance group .