DeleteTargetGroup - Elastic Load Balancing

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.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

TargetGroupArn

The Amazon Resource Name (ARN) of the target group.

Type: String

Required: Yes

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceInUse

A specified resource is in use.

HTTP Status Code: 400

Examples

Delete a target group

This example deletes the specified target group.

Sample Request

https://elasticloadbalancing.amazonaws.com/?Action=DeleteTargetGroup &TargetGroupArn=arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067 &Version=2015-12-01 &AUTHPARAMS

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: