The purpose of this tutorial is to demonstrate how to purge content through the Purge Content endpoint.
Almost all requests to our REST API services require authorization. Authorization is granted by passing a REST API token via the Authorization request header using the following syntax:
Copy your REST API token from the Web Service REST API Token section of the My Settings page.
If the Web Service REST API Token section is not present on the My Settings page, then you are not authorized to access our REST API services. Please contact your CDN administrator to gain access.
A request to purge content must identify the platform from which it will be purged.
Note the integer corresponding to the desired platform.
Identify the CDN or edge CNAME URL that will be purged.
Forward slashes must be escaped with a backslash when submitting purge requests in JSON.
Sample Purge URL (Individual File):
The following sample edge CNAME URL may be used to purge an asset called "brochure.pdf."
The JSON equivalent of the above URL is provided below.
Sample Purge URL (Recursive):
The following sample edge CNAME URL may be used to recursively purge a folder called "marketing."
The JSON equivalent of the above URL is provided below.
Submit the following curl request:
Make sure to replace the highlighted text with the appropriate values.