Menu
Elastic Load Balancing
API Reference (API Version 2015-12-01)

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.

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

Example

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: