You can call this operation to delete an image component.

Description

Only custom image components that you created can be deleted.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteImageComponent

The operation that you want to perform. Set the value to DeleteImageComponent.

ImageComponentId String Yes ic-bp67acfmxazb4p****

The ID of the image component to be deleted.

RegionId String Yes cn-hangzhou

The region ID of the image component. You can call the DescribeRegions operation to query the most recent region list.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=DeleteImageComponent
&ImageComponentId=ic-bp67acfmxazb4p****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DeleteImageComponentResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DeleteImageComponentResponse>

JSON format

{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

For a list of error codes, visit the API Error Center.