Deletes an image repository.

If you delete a repository, all images in the repository are also deleted.


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 DeleteRepository

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

InstanceId String Yes cri-xkx6vujuhay0****

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the image repository is deployed.

RepoId String Yes crr-l4933wbcmun2****

The ID of the image repository.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the operation is successful. Valid values:

  • true: successful.
  • false: failed.
RequestId String 47DD9D56-09A0-4C52-B520-C3805DBAB96B

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

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

Error codes

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