Skip to content
  • Auto
  • Light
  • Dark

Delete

Delete a Snapshot
gpu_droplets.snapshots.delete(Union[int, str]snapshot_id)
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.

ParametersExpand Collapse
snapshot_id: Union[int, str]

The ID of a Droplet snapshot.

Accepts one of the following:
SnapshotIDUnionMember0 = int

The ID of a Droplet snapshot.

SnapshotIDUnionMember1 = str

The ID of a volume snapshot.

from gradient import Gradient

client = Gradient()
client.gpu_droplets.snapshots.delete(
    6372321,
)
Returns Examples