Deleting a rule - Amazon WAF, Amazon Firewall Manager, and Amazon Shield Advanced
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).

Deleting a rule

Note

This is Amazon WAF Classic documentation. You should only use this version if you created Amazon WAF resources, like rules and web ACLs, in Amazon WAF prior to November 2019, and you have not migrated them over to the latest version yet. To migrate your resources, see Migrating your Amazon WAF Classic resources to Amazon WAF.

For the latest version of Amazon WAF, see Amazon WAF.

If you want to delete a rule, you need to first remove the rule from the web ACLs that are using it and remove the conditions that are included in the rule.

To delete a rule
  1. Sign in to the Amazon Web Services Management Console and open the Amazon WAF console at https://console.amazonaws.cn/wafv2/.

    If you see Switch to Amazon WAF Classic in the navigation pane, select it.

  2. To remove the rule from the web ACLs that are using it, perform the following steps for each of the web ACLs:

    1. In the navigation pane, choose Web ACLs.

    2. Choose the name of a web ACL that is using the rule that you want to delete.

    3. Choose the Rules tab.

    4. Choose Edit web ACL.

    5. Choose the X to the right of the rule that you want to delete, and then choose Update.

  3. In the navigation pane, choose Rules.

  4. Select the name of the rule you want to delete.

  5. Choose Delete.