Deletes a protection policy.


  • You can call this operation up to 20 times per second per account.
  • Alibaba Cloud Dynamic Route for CDN (DCDN) supports POST requests.


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 DeleteDcdnWafPolicy

The operation that you want to perform. Set the value to DeleteDcdnWafPolicy.

PolicyId Long Yes 1000001

The ID of the protection policy that you want to delete. You can specify only one ID in each request.

Response parameters

Parameter Type Example Description
RequestId String CB1A380B-09F0-41BB-B084-72F8FD6DA2FE

The ID of the request.


Sample requests

curl -XPOST '
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "CB1A380B-09F0-41BB-B084-72F8FD6DA2FE"

Error codes

HTTP status code Error codes Error message Description
400 InvalidParameter The specified parameter is invalid. The error message returned because the specified parameter value is invalid.
400 Policy.NotExist The specified policy does not exist. The error message returned because the specified protection policy does not exist.
400 Policy.DeleteForbidden The specified policy is forbidden to delete. The error message returned because the specified policy cannot be deleted.
500 InternalError An internal error occurred; please try again later. The error message returned because an internal error occurred. Try again later. If the error persists, submit a ticket.

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