Deletes a namespace that belongs to your account. The namespace is specified when you call the PutDcdnKvNamespace operation.

Note You can call this operation up to five times per second per account.

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 DeleteDcdnKvNamespace

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

Namespace String Yes ns1

The name of the namespace. The name can contain letters, digits, hyphens (-), and underscores (_).

Response parameters

Parameter Type Example Description
RequestId String D61E4801-EAFF-4A63-AAE1-FBF6CE1CFD1C

The ID of the request.

Examples

Sample requests

https://dcdn.aliyuncs.com?&Action=DeleteDcdnKvNamespace&Namespace=ns1
&<Common request parameters>

Sample success responses

XML format

<DeleteDcdnKvNamespaceResponse>
  <RequestId>D61E4801-EAFF-4A63-AAE1-FBF6CE1CFD1C</RequestId>
</DeleteDcdnKvNamespaceResponse>

JSON format

{
    "RequestId": "D61E4801-EAFF-4A63-AAE1-FBF6CE1CFD1C"
}

Error codes

HTTP status code Error code Error message Description
400 Invalid.Parameter The specified parameter is invalid. The error message returned because the specified parameter is invalid.
404 InvalidAccount.NotFound The specified account does not exist. The error message returned because the specified account does not exist.
400 InvalidAccount.Malformed The specified account is invalid. The error message returned because the specified account is invalid, for example, the input is empty.
429 TooManyRequests Too many requests are submitted. The error message returned because requests are frequently submitted.
404 InvalidNameSpace.NotFound The specified namespace does not exist. The error message returned because the specified namespace does not exist.
400 InvalidNameSpace.Malformed The specified namespace is invalid. The error message returned because the specified namespace is invalid, for example, the input is empty.
406 InvalidNameSpace.Duplicate The specified namespace already exists. The error message returned because the specified namespace already exists.
406 InvalidNameSpace.QuotaFull The maximum number of namespaces is exceeded. The error message returned because the maximum number of namespaces has been reached.
404 InvalidKey.NotFound The specified key does not exist. The error message returned because the requested key does not exist.
400 InvalidKey.Malformed The specified key is invalid. The error message returned because the specified key is invalid, for example, the input is empty.
400 InvalidKey.ExceedsMaximum The size of the key cannot exceed 512 bytes. The error message returned because the maximum length of the key has been reached. The maximum length of the key is 512 bytes.
400 InvalidValue.ExceedsMaximum The size of the value cannot exceed 2,000,000 bytes. The error message returned because the maximum length of the value has been reached. The maximum length of the value is 2,000,000 bytes.
406 InvalidKey.QuotaFull The maximum number of keys is exceeded. The error message returned because the maximum number of keys has been reached.
403 InvalidKey.ExceedsCapacity The maximum capacity of a single namespace cannot exceed 1 GB. The error message returned because the maximum capacity of a namespace has been reached. The maximum capacity of a namespace is 1 GB.
429 TooQuickRequests Request for putting or deleting keys are frequently submitted. The error message returned because requests to put or delete keys are frequently submitted.
403 Unauthorized.InvalidParameters The specified authentication parameters are invalid. The error message returned because the specified authentication parameters are invalid.
403 Unauthorized.InvalidTime The specified authentication time is invalid. The error message returned because the format of the specified authentication time is invalid.
403 Unauthorized.InvalidToken Token authentication failed. The error message returned because token verification failed.
403 Unauthorized.InvalidResource Resource authentication failed. The error message returned because resource verification failed.

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