Deletes the namespace of a Container Registry instance.

Note After you delete a namespace, all repositories in the namespace and the resources in these repositories are 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 DeleteChartNamespace

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

InstanceId String Yes cri-xkx6vujuhay0****

The ID of the Container Registry instance.

NamespaceName String Yes ns2

The namespace that you want to delete.

RegionId String Yes cn-shanghai

The ID of the region.

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 FEC62DF1-1394-467F-A69F-4BC1BA29F383

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteChartNamespace
&InstanceId=cri-xkx6vujuhay0****
&NamespaceName=ns2
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>FEC62DF1-1394-467F-A69F-4BC1BA29F383</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess":true,
    "RequestId":"FEC62DF1-1394-467F-A69F-4BC1BA29F383",
    "Code":"success"
}

Error codes

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