Skip to content
  • Auto
  • Light
  • Dark

Delete Dangerous

Delete autoscale pool and resources
client.gpuDroplets.autoscale.deleteDangerous(stringautoscalePoolID, AutoscaleDeleteDangerousParams { xDangerous } params, RequestOptionsoptions?): void
delete/v2/droplets/autoscale/{autoscale_pool_id}/dangerous

To destroy an autoscale pool and its associated resources (Droplets), send a DELETE request to the /v2/droplets/autoscale/$AUTOSCALE_POOL_ID/dangerous endpoint.

ParametersExpand Collapse
autoscalePoolID: string
params: AutoscaleDeleteDangerousParams { xDangerous }
xDangerous: boolean

Acknowledge this action will destroy the autoscale pool and its associated resources and can not be reversed.

Delete autoscale pool and resources
import Gradient from '@digitalocean/gradient';

const client = new Gradient();

await client.gpuDroplets.autoscale.deleteDangerous('0d3db13e-a604-4944-9827-7ec2642d32ac', {
  'X-Dangerous': true,
});
Returns Examples