pydo.images.delete()
Generated on 18 Jun 2025
from pydo
version
v0.11.0
Description
To delete a snapshot or custom image, send a DELETE
request to /v2/images/$IMAGE_ID
.
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
image_id |
integer | True | A unique number that can be used to identify and reference a specific image. |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.images.delete(image_id=134215)
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.