Skip to content

Delete a Volume Snapshot

client.gpuDroplets.volumes.snapshots.delete(stringsnapshotID, RequestOptionsoptions?): void
delete/v2/volumes/snapshots/{snapshot_id}

To delete a volume snapshot, send a DELETE request to /v2/volumes/snapshots/$VOLUME_SNAPSHOT_ID.

A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

ParametersExpand Collapse
snapshotID: string
Delete a Volume Snapshot
import Gradient from '@digitalocean/gradient';

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

await client.gpuDroplets.volumes.snapshots.delete('fbe805e8-866b-11e6-96bf-000f53315a41');
Returns Examples