Sign in

Purge CDN cache

documented

Purge cached content for a CDN endpoint.

POST /v2/cdn/endpoints/{endpoint_id}/purgeCDNno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.digitalocean.com/v2/cdn/endpoints/{{$endpoint_id}}/cache" \
  -X DELETE \\
  -H "Content-Type: application/json" \\n  -H "Accept: application/json" \\n  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \\n  -d '{"files": ["{{$path1}}", "{{$path2}}"]}'
Purge CDN cache · DigitalOcean · OpenIntegrations