• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. OpenStack Nova APIs
  5. Image Management
  6. Deleting an Image (Discarded)

Deleting an Image (Discarded)

Function Description

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

Constraints

  • This API will be discarded. You are advised to use the IMS interface "Deleting an Image (Native OpenStack API)".

URI

DELETE /v2/{project_id}/images/{image_id}

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

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

image_id

Yes

Specifies the image ID.

Request

N/A

Response

N/A

Examples

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

    N/A

Returned Values

See General Request Returned Values.