Deletes an image repository from an instance.

If you delete a repository, all images in the repository are also 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
InstanceId String Yes cri-xkx6vujuhay0tasd

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

RepoId String Yes crr-l4933wbcmun22pas

The ID of the image repository.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

RequestId String 47DD9D56-09A0-4C52-B520-C3805DBAB96B

The ID of the request.

Examples

Sample requests

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

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"47DD9D56-09A0-4C52-B520-C3805DBAB96B",
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>47DD9D56-09A0-4C52-B520-C3805DBAB96B</RequestId>
<Code>success</Code>

Error codes

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