Deleting an Image (Native OpenStack API V1.1, Discarded)
Function
This API is used to delete an image. If you soft delete the image with a specified ID, the image persists in the database, but in the deleted status.
This API has been discarded. Deleting an Image (Native OpenStack API) is recommended.
URI
DELETE /v1.1/images/{image_id}
Table 1 lists the parameters in the URI.
Parameter | Mandatory | Type | Description |
---|---|---|---|
image_id | Yes | String | Specifies the image ID. |
Request
Request parameters
None
Example Request
Deleting an image
DELETE https://{Endpoint}/v1.1/images/3c3d1d01-b48a-4639-8a88-08be3b9b5d78
Response
- Response parameters
None
- Example responseHTTP/1.1 200 OKContent-Type: text/html; charset=UTF-8Content-Length: 0X-Openstack-Request-Id: req-75e9edca-7b43-47da-bdc5-d39be469b72fDate: Mon, 23 May 2016 02:43:34 GMT
Returned Values
- Normal
204
- Abnormal
Returned Values
Description
400 Bad Request
Request error.
401 Unauthorized
Authentication failed.
403 Forbidden
You do not have the rights to perform the operation.
404 Not Found
The requested resource was not found.
500 Internal Server Error
Internal service error.
503 Service Unavailable
The service is unavailable.
Parent topic: Image (Native OpenStack APIs)
- Function
- URI
- Request
- Example Request
- Response
- Returned Values