deleteTargetGroup
Deletes the specified target group.
You can delete a target group if it is not referenced by any actions. Deleting a target group also deletes any associated health checks. Deleting a target group does not affect its registered targets. For example, any EC2 instances continue to run until you stop or terminate them.
Samples
fun main() {
//sampleStart
// This example deletes the specified target group.
elasticLoadBalancingV2Client.deleteTargetGroup {
targetGroupArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
}
//sampleEnd
}