Home / Servers / DigitalOcean API / cdn_purge_cache

Purge the Cache for an Existing CDN Endpoint

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Purge the Cache for an Existing CDN Endpoint To purge cached content from a CDN endpoint, send a DELETE request to /v2/cdn/endpoints/$ENDPOINT_ID/cache. The body of the request should include a files attribute containing a list of cached file… [DELETE /v2/cdn/endpoints/{cdn_id}/cache]

Name on the gateway: digitalocean_api__cdn_purge_cache · may change things.

Parameters

NameTypeDescription
cdn_id requiredstringA unique identifier for a CDN endpoint.
files requiredarrayAn array of strings containing the path to the content to be purged from the…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__cdn_purge_cache",
  "arguments": {
    "cdn_id": "…",
    "files": []
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the purge the cache for an existing cdn endpoint tool with cdn_id set to ….

More from DigitalOcean API