Delete Cache Control
This API is used to delete a cache control policy for the website acceleration service.
Request
Request-Line
DELETE /cdn/v1.0/services/{serviceId}/cacheControl/{policyId} HTTP/1.1
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | Integer | Mandatory | The unique identifier for the service from which the cache control policy will be deleted. |
| policyId | Integer | Mandatory | The unique identifier of the cache control policy to be deleted. |
Response
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 400 | Request.BadRequest | Bad request. |
| 400 | InvalidCustomer.IdEmpty | Customer ID is empty or invalid. |
| 400 | InvalidService.IdIncorrect | Service ID is empty or invalid. |
| 400 | InvalidService.IdPermission | Service ID cannot be found or unknown. |
| 400 | InvalidPolicy.Id | Policy ID is empty or invalid. |
Examples
Delete Cache Control
Request
DELETE /cdn/v1.0/services/228657/cacheControl/261874 HTTP/1.1
Successful Response Body
HTTP/1.1 200