@utils.arg('id', metavar='<id>', nargs='+', help=_('Unique ID(s) of the server group to delete.'))
def do_server_group_delete(cs, args):
 failure_count = 0
 for sg in args.id:
  try:
   cs.server_groups.delete(sg)
   print((_('Server group %s has been successfully deleted.') % sg))
  except Exception as e:
   failure_count += 1
   print((_('Delete for server group %(sg)s failed: %(e)s') % {'sg': sg, 'e': e}))
 if (failure_count == len(args.id)):
  raise exceptions.CommandError(_('Unable to delete any of the specified server groups.'))

@ utils . arg ( 'id' , metavar = '<id>' , nargs = '+' , help = _ ( 'Unique ID(s) of the server group to delete.' ) ) def do_server_group_delete ( cs , args ) : failure_count = 0 for sg in args . id : try : cs . server_groups . delete ( sg ) print ( ( _ ( 'Server group %s has been successfully deleted.' ) % sg ) ) except Exception as e : failure_count += 1 print ( ( _ ( 'Delete for server group %(sg)s failed: %(e)s' ) % { 'sg' : sg , 'e' : e } ) ) if ( failure_count == len ( args . id ) ) : raise exceptions . CommandError ( _ ( 'Unable to delete any of the specified server groups.' ) )
delete specific server group(s) .