(ctx context.Context, name string, purge bool)
| 128 | } |
| 129 | |
| 130 | func deleteZone(ctx context.Context, name string, purge bool) { |
| 131 | zone := lookupZone(ctx, name) |
| 132 | if purge { |
| 133 | purgeZoneRecords(ctx, zone, false) |
| 134 | } |
| 135 | req := route53.DeleteHostedZoneInput{Id: zone.Id} |
| 136 | _, err := r53.DeleteHostedZone(ctx, &req) |
| 137 | fatalIfErr(err) |
| 138 | fmt.Printf("Deleted zone: '%s' ID: '%s'\n", *zone.Name, *zone.Id) |
| 139 | } |
| 140 | |
| 141 | func listZones(ctx context.Context, formatter Formatter) { |
| 142 | zones := make(chan *route53types.HostedZone) |
no test coverage detected