code: def main():  # noqa
      
      logging.basicConfig(format=LOGGING_FORMAT)
  
      parser = argparse.ArgumentParser(description=main.__doc__)
      add_debug(parser)
      add_app(parser)
      args = parser.parse_args()
  
      if args.debug == logging.DEBUG:
          logging.getLogger(__package__.split('.')[0]).setLevel(args.debug)
      else:
          LOG.setLevel(args.debug)
  
      for env in ENVS:
          for region in REGIONS:
              LOG.info('DESTROY %s:%s', env, region)
  
              try:
                  destroy_dns(app=args.app, env=env)
              except botocore.exceptions.ClientError as error:
                  LOG.warning('DNS issue for %s in %s: %s', env, region, error)
  
              try:
                  destroy_elb(app=args.app, env=env, region=region)
              except SpinnakerError:
                  pass
  
              try:
                  destroy_iam(app=args.app, env=env)
              except botocore.exceptions.ClientError as error:
                  LOG.warning('IAM issue for %s in %s: %s', env, region, error)
  
              try:
                  destroy_s3(app=args.app, env=env)
              except botocore.exceptions.ClientError as error:
                  LOG.warning('S3 issue for %s in %s: %s', env, region, error)
  
              try:
                  destroy_sg(app=args.app, env=env, region=region)
              except SpinnakerError:
                  pass
  
              LOG.info('Destroyed %s:%s', env, region)
  
      LOG.info('Destruction complete.')
docs: Attempt to fully destroy AWS Resources for a Spinnaker Application.