Skip to content
  • Auto
  • Light
  • Dark

Delete

Delete a Snapshot
delete/v2/snapshots/{snapshot_id}

Both Droplet and volume snapshots are managed through the /v2/snapshots/ endpoint. To delete a snapshot, send a DELETE request to /v2/snapshots/$SNAPSHOT_ID.

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

Path ParametersExpand Collapse
snapshot_id: number or string

The ID of a Droplet snapshot.

Accepts one of the following:
UnionMember0 = number

The ID of a Droplet snapshot.

UnionMember1 = string

The ID of a volume snapshot.

curl https://api.digitalocean.com/v2/snapshots/$SNAPSHOT_ID \
    -X DELETE \
    -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
Returns Examples