All Products
Search
Document Center

Edge Security Acceleration:DeleteKv

Last Updated:Jun 25, 2026

Delete a specific key-value pair from a namespace.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Namespace

string

Yes

The namespace name that you specified when calling CreateKvNamespace.

test_namespace

Key

string

Yes

The name of the key to delete.

test_key

Response elements

Element

Type

Description

Example

object

Schema of response

RequestId

string

The ID of the request.

EEEBE525-F576-1196-8DAF-2D70CA3F4D2F

Examples

Success response

JSON format

{
  "RequestId": "EEEBE525-F576-1196-8DAF-2D70CA3F4D2F"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidAccount.Malformed The specified account is invalid. The account is invalid. For example, the value is empty.
400 InvalidNameSpace.Malformed The specified namespace is invalid. The namespace name is invalid. For example, the value is empty.
400 InvalidKey.Malformed The specified key is invalid. The key name is invalid. For example, the value is empty.
400 InvalidKey.ExceedsMaximum The size of the key cannot exceed 512 bytes. The specified key exceeds the maximum size of 512 bytes.
400 InvalidValue.ExceedsMaximum The size of the value cannot exceed 2,000,000 bytes. The specified value exceeds the maximum size of 2,000,000 bytes.
403 InvalidKey.ExceedsCapacity The maximum capacity of a single namespace cannot exceed 1 GB. The namespace capacity exceeds the 1 GB limit.
403 Unauthorized.InvalidParameters The specified authentication parameters are invalid. The authentication parameters are invalid.
403 Unauthorized.InvalidTime The specified authentication time is invalid. The authentication time parameter is invalid. Verify the value and try again.
403 Unauthorized.InvalidToken Token authentication failed. The token is invalid. Verify the token and try again.
404 InvalidAccount.NotFound The specified account does not exist. The specified account does not exist.
404 InvalidNameSpace.NotFound The specified namespace does not exist.
404 InvalidKey.NotFound The specified key does not exist. The specified key-value pair does not exist.
406 InvalidNameSpace.Duplicate The specified namespace already exists. The specified namespace already exists.
406 InvalidNameSpace.QuotaFull The maximum number of namespaces is exceeded. The number of namespaces exceeds the quota.
429 TooManyRequests Too many requests are submitted. Too many requests. Try again later.
429 TooQuickRequests Request for putting or deleting keys are frequently submitted. Key-value pair put or delete requests are too frequent.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.