• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Images
  6. Deleting an Image

Deleting an Image

Function Description

This interface is used to delete a specified image. The image cannot be restored after being deleted.

URI

  • URI format

    DELETE /v2/{tenant_id}/images/{image_id}

    DELETE /v2.1/{tenant_id}/images/{image_id}

  • Parameter description

    Parameter

    Mandatory

    Description

    tenant_id

    Yes

    Specifies the tenant or project ID.

    image_id

    Yes

    Specifies the image ID.

Restrictions

This interface will become invalid from micro version 2.36. Since this version, the system will return error 404 when you invoke this interface. Using the corresponding image service interface is recommended.

Extension Description

N/A

Request

N/A

Response

N/A

Request Example

DELETE /v2/9c53a566cb3443ab910cf0daebca90c4/images/6cad483b-e281-4985-a345-7afef1f3c5b7

DELETE /v2.1/9c53a566cb3443ab910cf0daebca90c4/images/6cad483b-e281-4985-a345-7afef1f3c5b7

Response Example

N/A

Returned Values

See General Request Returned Values.