Deletes a namespace from an instance.

If you delete a namespace, all repositories in the namespace and all images in the repositories 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 DeleteNamespace

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

InstanceId String Yes cri-xkx6vujuhay0tasd

The ID of the instance.

NamespaceName String Yes ns3

The name of the namespace.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

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 BA08C185-8F76-48D7-ACB3-BA11BF2778F9

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=DeleteNamespace
&<Common request parameters>

Sample success responses

JSON format


XML format


Error codes

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