Instant Purging removes an image from Fastly caches immediately so it can be refreshed from your origin servers.
Purging images via the user interface
- Log in to the Fastly web interface and click the Configure link.
- From the service menu, select the appropriate service.
- From the Purge menu, select Purge URL. The Purge URL window appears.
Purge an individual image
- In the Full URL path field, type the path to the image you'll be purging (e.g.,
/image.jpg?width=320
). The Preview field displays the URL that will be purged. - Click the Purge button.
Purge all transformed image variations
- In the Full URL path field, type the path to the image removing all Fastly Image Optimizer API query string parameters. (e.g.,
/image.jpg
). The Preview field displays the URL that will be purged. - Click the Purge button.
Purging images via API
The syntax for purging a service through the API can be found in the Purging section of the API documentation.
Purge an individual image via API
To purge an individual image URL, type the path to the image you want to purge.
For example: curl -X PURGE https://www.fastly.io/image.jpg?width=320
Purge all transformed image variations via API
To purge all transformed image variations belonging to a specific image, remove all the Fastly Image Optimizer API query string parameters.
For example: curl -X PURGE https://www.fastly.io/image.jpg
This article describes a product that may use third-party cloud infrastructure to process or store content or requests for content. For more information, see our cloud infrastructure security and compliance program.