Delete Guard Hooks in your account - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Delete Guard Hooks in your account

When you no longer need an activated Guard Hook, use the following procedures to delete it in your account.

To temporarily disable a Hook instead of deleting it, see Disable and enable Amazon CloudFormation Hooks.

Delete a Guard Hook in your account (console)

To delete a Guard Hook in your account
  1. Sign in to the Amazon Web Services Management Console and open the Amazon CloudFormation console at https://console.amazonaws.cn/cloudformation.

  2. On the navigation bar at the top of the screen, choose the Amazon Web Services Region where the Hook is located.

  3. From the navigation pane, choose Hooks.

  4. On the Hooks page, find the Guard Hook you want to delete.

  5. Select the check box next to your Hook and choose Delete.

  6. When prompted for confirmation, type out the Hook name to confirm deleting the specified Hook and then choose Delete.

Delete a Guard Hook in your account (Amazon CLI)

Note

Before you can delete the Hook, you must first disable it. For more information, see Disable and enable a Hook in your account (Amazon CLI).

Use the following deactivate-type command to deactivate a Hook, which removes it from your account. Replace placeholders with your specific values.

aws cloudformation deactivate-type \ --type-arn "arn:aws:cloudformation:us-west-2:123456789012:type/hook/MyTestHook" \ --region us-west-2