Skip to content

Commit dbf6bb9

Browse files
penalosajonesphillip
authored andcommitted
Document new options for kv bulk delete (#18805)
1 parent 6cd62a2 commit dbf6bb9

File tree

1 file changed

+7
-1
lines changed
  • src/content/partials/workers/wrangler-commands

1 file changed

+7
-1
lines changed

src/content/partials/workers/wrangler-commands/kv.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,14 +497,20 @@ This command requires `--binding` or `--namespace-id`.
497497
498498
<Render file="wrangler-commands/global-flags" product="workers" />
499499
500-
This command takes a JSON file as an argument containing an array of keys to delete.
500+
This command takes a JSON file as an argument containing the keys to delete.
501501
502502
The following is an example of the JSON input:
503503
504504
```json
505505
["test_key_1", "test_key_2"]
506506
```
507507
508+
The command also accepts keys in the format output from `wrangler kv key list`:
509+
510+
```json
511+
[{ "name": "test_key_1" }, { "name": "test_key_2" }]
512+
```
513+
508514
The following is an example of deleting all the keys found in the `allthethingsdelete.json` file.
509515
510516
```sh

0 commit comments

Comments
 (0)