Purge URL or Purge All
A 2-step recipe with Fastly. We can help you get access.
Recipe · 2 steps
Purge URL or Purge All
with Fastly
Purge a single URL or purge all content depending on the chosen scope.
- Decide whether to purge a single URL or all service content.
- Purge all cached content for the service when scope is "all".
What you'll need to have ready
- apiToken: The Fastly API token used to authenticate requests.
- scope: Either "url" to purge a single URL or "all" to purge all content.
- serviceId: The alphanumeric identifier of the service (used for purge all).
- cachedUrl: The full URL of the cached object to purge (when scope is "url").
- softPurge: Set to 1 to perform a soft purge of the single URL.
For your developer
Arazzo workflow fastly:purge-url-or-all, 2 operations: purgeSingleUrl → purgeAll. Specs on APIs.io.