根据指定的键名列表来批量删除指定KV存储空间的键值对。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
dcdn:BatchDeleteDcdnKv |
delete |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
Namespace |
string |
是 |
调用 PutDcdnKvNamespace 时指定的名称。 |
test_namespace |
Keys |
array |
是 |
要批量删除的键名称列表, 最多删除 10000 个键。 |
|
string |
否 |
要删除的键名。 |
test_key1 |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
Schema of Response |
||
RequestId |
string |
请求 ID。 |
EEEBE525-F576-1196-8DAF-2D70CA3F4D2F |
FailKeys |
array |
删除失败的键列表。 |
|
string |
删除失败的键名。 |
test_key1 |
|
SuccessKeys |
array |
删除成功的键列表。 |
|
string |
删除成功的键名。 |
test_key2 |
示例
正常返回示例
JSON
格式
{
"RequestId": "EEEBE525-F576-1196-8DAF-2D70CA3F4D2F\n",
"FailKeys": [
"test_key1"
],
"SuccessKeys": [
"test_key2"
]
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | Invalid.Parameter | The specified parameter is invalid. | 输入参数无效 |
400 | InvalidNameSpace.Malformed | The specified namespace is invalid. | namespace输入不对,比如输入为空 |
400 | InvalidAccount.Malformed | The specified account is invalid. | 账号输入不对,比如输入为空 |
400 | InvalidKey.Malformed | The specified key is invalid. | key输入不对,比如输入为空 |
400 | InvalidKey.ExceedsMaximum | The size of the key cannot exceed 512 bytes. | key长度不能超过512B |
400 | InvalidValue.ExceedsMaximum | The size of the value cannot exceed 2,000,000 bytes. | value长度不能越过2000000B |
400 | InvalidKey.TooManyKeys | request contains too many keys. | 单次请求包含过多数量的key |
403 | InvalidKey.ExceedsCapacity | The maximum capacity of a single namespace cannot exceed 1 GB. | namespace容量超过限制,单个namespace最大容量为1G |
403 | Unauthorized.InvalidParameters | The specified authentication parameters are invalid. | 鉴权参数输入错误 |
403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | 您输入的鉴权时间参数无效,请检查参数值后重试。 |
403 | Unauthorized.InvalidToken | Token authentication failed. | 您输入的token无效,请检查并输入正确的token后进行重试。 |
404 | InvalidNameSpace.NotFound | The specified namespace does not exist. | namespace不存在 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?