Python
from gcore import Gcore client = Gcore( api_key="My API Key", ) task_id_list = client.cloud.instances.images.delete( image_id="image_id", project_id=0, region_id=0, ) print(task_id_list.tasks)
{ "tasks": [ "d478ae29-dedc-4869-82f0-96104425f565" ] }
Delete a specific image. The image cannot be deleted if it is used by protected snapshots.
Was this page helpful?