DeleteRule - Elastic Load Balancing

DeleteRule

Deletes the specified rule.

You can't delete the default rule.

Request Parameters

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

RuleArn

The Amazon Resource Name (ARN) of the rule.

Type: String

Required: Yes

Errors

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

OperationNotPermitted

This operation is not allowed.

HTTP Status Code: 400

RuleNotFound

The specified rule does not exist.

HTTP Status Code: 400

Example

Delete a rule

This example deletes the specified rule.

Sample Request

https://elasticloadbalancing.amazonaws.com/?Action=DeleteRule &RuleArn=arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3 &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: