Deletes a namespace.
Debugging
Request headers
This operation does not have operation-specific request headers and uses only common request headers. For more information, see Common request and response headers.
Request syntax
DELETE /pop/v1/paas/namespace HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
NamespaceId | String | Query | No | cn-beijing:test | The long ID of the namespace. If you configure this parameter, the long ID take effects and the value of the NameSpaceShortId parameter is ignored. To ensure compatibility, we recommend that you specify a short namespace ID. |
NameSpaceShortId | String | Query | No | test | The short ID of the namespace. You do not need to specify a region ID. We recommend that you configure this parameter. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** | The request ID. |
Message | String | success | The returned message. |
TraceId | String | 0a981dd515966966104121683d**** | The trace ID that is used to query the details of the request. |
ErrorCode | String | Null | The error code. Valid values:
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the namespace was deleted. Valid values:
|
Examples
Sample requests
DELETE /pop/v1/paas/namespace?NamespaceId=cn-beijing:test&NameSpaceShortId=test HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteNamespaceResponse>
<RequestId>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</RequestId>
<Message>success</Message>
<TraceId>0a981dd515966966104121683d****</TraceId>
<Code>200</Code>
<Success>true</Success>
</DeleteNamespaceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message" : "success",
"TraceId" : "0a981dd515966966104121683d****",
"Code" : "200",
"Success" : true
}
Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidOperation.NamespaceClusterNotDeleted | The specified NamespaceId contains clusters. | The specified namespace contains clusters. |
400 | Namespace.AppExists | Please delete the application first. | The namespace contains applications. Remove the applications and try again. |
400 | System.Upgrading | The system is being upgraded. Please try again later. | The system is being upgraded. Try again later. |
404 | InvalidNamespaceId.NotFound | The specified NamespaceId does not exist. | The specified namespace ID does not exist. |
500 | OperationFailed.DauthHttpRequest | request dauth failed. | The system failed to authenticate the request. |
For a list of error codes, see Service error codes.