Deletes an image from a repository.

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 DeleteRepoTag

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

InstanceId String Yes cri-xkx6vujuhay0tasd

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-xwvi3osiy4ffoasd

The ID of the image repository.

Tag String Yes 1.24

The tag of the image.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the operation is successful.

RequestId String 96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteRepoTag
&InstanceId=cri-xkx6vujuhay0tasd
&RegionId=crr-xwvi3osiy4ffoasd
&RepoId=cn-shanghai
&Tag=1.24
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess":true,
    "RequestId":"96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0",
    "Code":"success"
}

Error codes

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