Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/content/partials/workers/wrangler-commands/kv.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,20 @@ This command requires `--binding` or `--namespace-id`.

<Render file="wrangler-commands/global-flags" product="workers" />

This command takes a JSON file as an argument containing an array of keys to delete.
This command takes a JSON file as an argument containing the keys to delete.

The following is an example of the JSON input:

```json
["test_key_1", "test_key_2"]
```

The command also accepts keys in the format output from `wrangler kv key list`:

```json
[{ "name": "test_key_1" }, { "name": "test_key_2" }]
```

The following is an example of deleting all the keys found in the `allthethingsdelete.json` file.

```sh
Expand Down
Loading