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.

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 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.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteNamespace
&InstanceId=cri-xkx6vujuhay0tasd
&NamespaceName=ns3
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"BA08C185-8F76-48D7-ACB3-BA11BF2778F9",
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>BA08C185-8F76-48D7-ACB3-BA11BF2778F9</RequestId>
<Code>success</Code>

Error codes

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