Skip to content

Delete an Existing Droplet

client.gpuDroplets.delete(numberdropletID, RequestOptionsoptions?): void
delete/v2/droplets/{droplet_id}

To delete a Droplet, send a DELETE request to /v2/droplets/$DROPLET_ID.

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

ParametersExpand Collapse
dropletID: number
minimum1
Delete an Existing Droplet
import Gradient from '@digitalocean/gradient';

const client = new Gradient({
  accessToken: 'My Access Token',
});

await client.gpuDroplets.delete(3164444);
Returns Examples