delete https://{OrangeLogicURL}/webapi/mediafile/storage/InvalidateCloudfrontCache_2cl_v1
Invalidate an asset’s CloudFront CDN cache to quickly update or remove the public embed links
Get CloudFront distribution information
- In the Orange Logic interface, go to Administration > CDN settings.
- Click the View button of the CDN whose cache you want to invalidate.

“CDN settings” in Administration - some text intentionally blurred
- Note the information for the API call:
- Access key (IAM credentials only)
- Distribution domain name
- API ID

“CDN settings” window for a CloudFront distribution - some text intentionally blurred
Here is an example call using sample values for each of the query parameters described in the table below.
Example
curl -X 'DELETE' \
'https://mangovations.orangelogic.com/webapi/mediafile/storage/InvalidateCloudfrontCache_2cl_v1' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"accessKeys": [
"AF7AS7FB4LGHKGT"
],
"identifiers": [
"Q0LXRJFQ7"
],
"cdnApiId": "g2Z0ZIRF4S1",
"distributionDomainName": "mango-cdn.orangelogic.com"
}'
