---
title: "Cloudfront CDN cache invalidation"
method: DELETE
path: "/InvalidateCloudfrontCache_2cl_v1"
---

# Cloudfront CDN cache invalidation

`DELETE /InvalidateCloudfrontCache_2cl_v1`

## Request

- Base URL: `https://OrangeLogicURL/webapi/mediafile/storage`
- URL: `https://OrangeLogicURL/webapi/mediafile/storage/InvalidateCloudfrontCache_2cl_v1`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://example.com/oauth2/token`

Invalidate an asset’s CloudFront CDN cache to quickly update or remove the public embed links

## Request body

- object
  - `accessKeys` string[]: Your CloudFront distribution’s access key. Either <code>accessKeys</code> or <code>identifiers</code> are required.
  - `identifiers` string[]: The unique ID of one or more assets you’re invalidating the cache for. Either <code>accessKeys</code> or <code>identifiers</code> are required.
  - `cdnApiId` string: The <a href="https://developer.orangelogic.com/reference/cloudfront-cdn-cache-invalidation#get-cloudfront-distribution-information" target="_blank">API ID of the Cloudfront distribution</a> used to distribute this asset’s formats.
  - `distributionDomainName` string: The distribution domain name of the CloudFront distribution used to distribute this asset’s formats.

## Response `200`

200

- object
  - `success` boolean
  - `successAccessKeys` object[]
  - `failedAccessKeys` object[]
  - `errorMessage` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/orangelogic/apis/mediafile-storage.md) - [All operations](https://skmtc.dev/orangelogic/apis/mediafile-storage/llms.txt) - [OpenAPI document](https://skmtc.dev/orangelogic/apis/mediafile-storage/revisions/7a97025096a4?raw)
