def DeleteInstance(args: 'argparse.Namespace') -> None:
  """Delete an instance.

  Args:
    args (argparse.Namespace): Arguments from ArgumentParser.
  """
  aws_account = account.AWSAccount(args.zone)
  instance = aws_account.ec2.GetInstancesByNameOrId(
      args.instance_name, args.instance_id, args.region)[0]
  instance.Delete(force_delete=args.force_delete)
Delete an instance.

Args:
args (argparse.Namespace): Arguments from ArgumentParser.
tools/aws_cli.py