Delete a notification rule - Developer Tools console

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)

  1. Open the AWS Developer Tools console at https://console.aws.amazon.com/codesuite/settings/notifications.

  2. In the navigation bar, expand Settings, and then choose Notification rules.

  3. 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.

  4. Choose the notification rule, and then choose Delete.

  5. Type delete, and then choose Delete.

To delete a notification rule (AWS CLI)

  1. 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
  2. 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" }