WorkerWorkers Kv Namespace

Delete multiple key-value pairs

DEL
Remove multiple KV pairs from the namespace. Body should be an array of up to 10,000 keys to be removed.

Path parameters

namespace_identifierstringRequired
Namespace identifier tag.
account_identifierstringRequired
Identifier

Request

This endpoint expects a list of strings.

Response

This endpoint returns an object
result
unionOptional
DEL
1curl -X DELETE https://api.cloudflare.com/client/v4/accounts/023e105f4ecef8ad9ca31a8372d0c353/storage/kv/namespaces/0f2ac74b498b48028cb68387c421e279/bulk \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '[
5 "My-Key"
6]'
200Deleted
1{}