Deletes a rule from the protection configuration module.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteProtectionModuleRule

The operation that you want to perform.

Set the value to DeleteProtectionModuleRule.

DefenseType String Yes ac_custom

Specifies the protection module configuration.

Valid values:

  • waf-codec: configures RegEx Protection Engine decoding settings.
  • tamperproof: configures the website tamper-proofing rules.
  • dlp: configures the data leak prevention rules.
  • ng_account: configures account security rules.
  • antifraud: configures data risk control.
  • antifraud_js: configures the JavaScript plug-in for data risk control.
  • bot_algorithm: configures intelligent algorithm rules for bot management.
  • bot_wxbb_pkg: configures version protection rules for app protection.
  • bot_wxbb: configures path protection rules for app protection.
  • ac_custom: configures custom protection policies.
  • whitelist: configures the whitelist rules.
Domain String Yes

The domain name that is added to WAF.

InstanceId String Yes waf-cn-mp9153****

The ID of the WAF instance.

Note You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.
RuleId Long Yes 42754

The ID of the rule.

Response parameters

Parameter Type Example Description
RequestId String 1557B42F-B889-460A-B17F-1DE5C5AD7FF2

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.