def delete_rax_scaling_group(args):
 print ("--- Cleaning Autoscale Groups matching '%s'" % args.match_re)
 for region in pyrax.identity.services.autoscale.regions:
  asg = pyrax.connect_to_autoscale(region=region)
  for group in rax_list_iterator(asg):
   if re.search(args.match_re, group.name):
    group.manager._delete = _force_delete_rax_scaling_group(group.manager)
    prompt_and_delete(group, ('Delete matching %s? [y/n]: ' % group), args.assumeyes)

def delete_rax_scaling_group ( args ) : print ( "--- Cleaning Autoscale Groups matching '%s'" % args . match_re ) for region in pyrax . identity . services . autoscale . regions : asg = pyrax . connect_to_autoscale ( region = region ) for group in rax_list_iterator ( asg ) : if re . search ( args . match_re , group . name ) : group . manager . _delete = _force_delete_rax_scaling_group ( group . manager ) prompt_and_delete ( group , ( 'Delete matching %s? [y/n]: ' % group ) , args . assumeyes )
function for deleting autoscale groups .