Skip to content
  • Auto
  • Light
  • Dark

Delete Cache

Delete a Global Load Balancer CDN Cache
client.gpuDroplets.loadBalancers.deleteCache(stringlbID, RequestOptionsoptions?): void
delete/v2/load_balancers/{lb_id}/cache

To delete a Global load balancer CDN cache, send a DELETE request to /v2/load_balancers/$LOAD_BALANCER_ID/cache.

A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

ParametersExpand Collapse
lbID: string
Delete a Global Load Balancer CDN Cache
import Gradient from '@digitalocean/gradient';

const client = new Gradient();

await client.gpuDroplets.loadBalancers.deleteCache('4de7ac8b-495b-4884-9a69-1050c6793cd6');
Returns Examples