Purging a Vultr CDN Pull Zone subscription is a crucial operation that forces the removal of cached content across all edge locations, ensuring that subsequent requests fetch the latest version directly from the origin server. This process is essential for content updates, preventing stale data from being served to users. When a purge is initiated, the CDN instructs all proxy servers to discard stored files and revalidate them on the next request, temporarily increasing origin traffic as new assets are retrieved.
Follow this guide to purge Vultr CDN Pull Zones from your Vultr account using the Vultr Customer Portal, API, or CLI.
Send a GET
request to the List CDN Pull Zones endpoint and note the target Pull Zone subscription's ID.
$ curl "https://api.vultr.com/v2/cdns/pull-zones" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the Purge CDN Pull Zone endpoint to purge the target Pull Zone subscription.
$ curl "https://api.vultr.com/v2/cdns/pull-zones/{pullzone-id}/purge" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all available CDN Pull Zone subscriptions and note the target Pull Zone subscription's ID.
$ vultr-cli cdn pull list
Purge the target Pull Zone subscription.
$ vultr-cli cdn pull purge <pullzone-id>