Permanently deletes a Rule. You can\'t delete a
Rule if it\'s still
used in any
WebACL objects or if it still includes any predicates,
[required] The value returned by the most recent call to GetChangeToken.
If you just want to remove a
Rule from a
WebACL, use UpdateWebACL.
To permanently delete a
Rule from AWS WAF, perform the following
Rule to remove predicates, if any. For more
information, see UpdateRule.
Use GetChangeToken to get the change token that you provide in the
ChangeToken parameter of a
1 2 3 4
svc$delete_rule( RuleId = "string", ChangeToken = "string" )
1 2 3 4 5
# The following example deletes a rule with the ID WAFRule-1-Example. svc$delete_rule( ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", RuleId = "WAFRule-1-Example" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.