Can I bulk delete keys in Workers KV?

Hello! The API docs at https://developers.cloudflare.com/workers/kv/api/ show how I can use the API to delete a single key in a namespace.

If I have a large array of keys that I need to delete, is there any faster way to do so besides calling this API one key at a time?

Bulk delete is not available inside of the worker directly, but the API can do it: Cloudflare API v4 Documentation

1 Like

Thanks! For billing purposes, does this count as 1 delete operation, or n?

Asked under #general:billing How are workers KV delete requests charged?