Delete a notification rule
There can be only 10 notification rules configured for a resource, so consider deleting rules you no longer need. You can use the Developer Tools console or the AWS CLI to delete a notification rule.
Note
You cannot undo the deletion of a notification rule, but you can recreate it. Deleting a notification rule does not delete the target.
To delete a notification rule (console)
Open the AWS Developer Tools console at https://console.aws.amazon.com/codesuite/settings/notifications
. -
In the navigation bar, expand Settings, and then choose Notification rules.
-
In Notification rules, review the rules configured for resources in your AWS account in the AWS Region where you are currently signed in. Use the selector to change the AWS Region.
-
Choose the notification rule, and then choose Delete.
-
Type
delete
, and then choose Delete.
To delete a notification rule (AWS CLI)
-
At a terminal or command prompt, run the delete-notification-rule command, specifying the ARN of the notification rule.
aws codestar-notifications delete-notification-rule --arn arn:aws:codestar-notifications:
us-east-1
:123456789012
:notificationrule/dc82df7a-EXAMPLE -
If successful, the command returns the ARN of the deleted notification rule, similar to the following.
{ "Arn": "arn:aws:codestar-notifications:
us-east-1
:123456789012
:notificationrule/dc82df7a-EXAMPLE" }