space

delete

Delete a product space from a branch.

strata space delete

wire space_delete

Drops the product space from the branch catalog. The `default` space refuses deletion with `invalid_argument.engine.space_delete_default`. A space that still contains visible data refuses deletion with `failed_precondition.engine.space_not_empty` unless `force: true` is set, which tombstones the visible rows first and reports the count. Deleting a space that does not exist succeeds with `deleted: false`.

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 space delete --help

Example

Delete a product space.

strata space create tempstrata space delete tempstrata space exists temp

Parameters

NameTypeRequiredDescription
spacestringyesProduct space name.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
forcebooleannoDelete visible data in the space before dropping the catalog entry.

Returns

MutationAck<SpaceDelete>

  • dataobject
  • typestring

Errors

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

← All 4 Spaces commands

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