Deletes a namespace.

Note After you delete a namespace, all repositories in the namespace and all images in these repositories are deleted as well.

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-xkx6vujuhay0****

The ID of the instance.

NamespaceName String Yes ns3

The name of the namespace.

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 operation is successful.

RequestId String BA08C185-8F76-48D7-ACB3-BA11BF2778F9

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

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

JSON format

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

Error codes

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