---
title: "DELETE /2020-05-31/cache-policy/{Id}"
method: DELETE
path: "/2020-05-31/cache-policy/{Id}"
---

# DELETE /2020-05-31/cache-policy/{Id}

`DELETE /2020-05-31/cache-policy/{Id}`

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`.

## Path parameters

- `Id` string, required

## Headers

- `If-Match` string

## Response `204`

Success

## Other responses

- `480` — AccessDenied
- `481` — InvalidIfMatchVersion
- `482` — NoSuchCachePolicy
- `483` — PreconditionFailed
- `484` — IllegalDelete
- `485` — CachePolicyInUse

---

[API](https://skmtc.net/aws/apis/cloudfront.md) · [All operations](https://skmtc.net/aws/apis/cloudfront/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/cloudfront/versions/fd674fc97471/schema)
