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.


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.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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