Validated on 5 Jun 2019 • Last edited on 2 Jul 2024
Custom images are Linux and Unix-like images you import to DigitalOcean. You can create Droplets based custom images, which lets you migrate and scale your workloads without spending time recreating your environment from scratch.
Delete a Custom Image using the Automation
How to Delete a Custom Image Using the DigitalOcean CLI
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.images.delete(image_id=134215)
Delete a Custom Image using the Control Panel
To delete a custom image via the control panel, in the left menu, click Backups & Snapshots, then click the Custom Images tab.
Click the More menu for the custom image you want to delete, then choose Delete. A confirmation window titled Confirm delete item opens. Click Delete Item to confirm the deletion
Droplets you’ve created from a custom image are not deleted when you delete the image from your account. You can destroy Droplets from the control panel separately.