json

index.drop

Drop a JSON secondary index by name.

strata json index drop

wire json_drop_index

Drops the named JSON secondary index and its stored entries. Documents are unaffected. The current wire response is a transitional boolean status.

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 json index drop --help

Example

Drop a secondary index.

strata json index create by_name $.name --index-type tagstrata json index drop by_namestrata json index list

Parameters

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

Returns

MutationAck<JsonIndexDrop>

  • databoolean
  • typestring

Errors

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

← All 16 JSON commands

agents: this page as markdown → /docs/reference/json/index/drop.md