v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14106607606.1 KB

Deletes a cache policy.

You cannot delete a cache policy if it's attached to a cache behavior. First update your distributions to remove the cache policy from all cache behaviors, then delete the cache policy.

To delete a cache policy, you must provide the policy's identifier and version. To get these values, you can use ListCachePolicies or GetCachePolicy.

delete/2020-05-31/cache-policy/{Id}

Path parameters

Idstring required

The unique identifier for the cache policy that you are deleting. To get the identifier, you can use <code>ListCachePolicies</code>.

Headers

If-Matchstring

The version of the cache policy that you are deleting. The version is the cache policy's <code>ETag</code> value, which you can get using <code>ListCachePolicies</code>, <code>GetCachePolicy</code>, or <code>GetCachePolicyConfig</code>.

Response

Success