kv

delete

Delete one visible KV key.

strata kv delete

wire kv_delete

Deletes the current visible value for a KV key. Missing keys produce a no-op delete acknowledgement rather than a read-style missing value.

Successful mutations return an acknowledgement of the outcome: for a state-changing write, the affected target with the mutation effect and commit facts; for mutations that produce a domain result (such as a branch or a promotion outcome), that result object.

To see the complete help for this command, run:

strata kv delete --help

Example

Delete a key; it is no longer visible afterward.

strata kv put temp scratchstrata kv delete tempstrata kv exists temp

Parameters

NameTypeRequiredDescription
keyBytesyesKey bytes.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

MutationAck<KvDelete>

  • dataobject
  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

CodeRetryCommit outcome
failed_precondition.engine.runtime_closednevernot_started
not_found.engine.branchnevernot_applicable
invalid_argument.engine.product_spacenevernot_started
invalid_argument.engine.kv_keynevernot_started
← All 13 Key-value commands

agents: this page as markdown → /docs/reference/kv/delete.md