Deletes a repository of a Container Registry instance.

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 DeleteChartRepository

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

InstanceId String Yes cri-xkx6vujuhay****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoName String Yes repo01

The name of the repository that you want to delete.

RepoNamespaceName String Yes namespace01

The namespace to which the repository belongs.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful. Valid values:

  • true: successful
  • false: failed
RequestId String 12589EF7-96E2-4554-AAD7-F7209E88CAD3

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteChartRepository
&InstanceId=cri-xkx6vujuhay****
&RegionId=cn-shanghai
&RepoName=repo01
&RepoNamespaceName=namespace01
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>12589EF7-96E2-4554-AAD7-F7209E88CAD3</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess":true,
    "RequestId":"12589EF7-96E2-4554-AAD7-F7209E88CAD3",
    "Code":"success"
}

Error codes

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