Description
Deletes an image that has been created for the BatchCompute service.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Id | String | Yes | Cluster ID. |
Examples
Request example
DELETE /images/{id}
Response example
Response status code
HTTP/1.1 204 No Content
Error codes
| Error code | Error message | HTTP status code | Meaning |
|---|---|---|---|
| InvalidRoleArn | Specified parameter RoleArn is not valid. AliyunBatchComputeDefaultRole don’t have access to share image. | 400 | AliyunBatchComputeDefaultRole is not authorized to share images. |
| InvalidEcsImageId | Specified parameter EcsImageId is not valid. The image is not available. | 400 | The current status of the ECS image is incorrect. |
| InvalidResource.NotFound | Specified resource is not found. | 404 | The user requested resource does not exist. |