branch

delete

Delete an active branch and release its storage claims.

strata branch delete

wire branch_delete

Deletes an active branch and reports the deleted branch summary, generation facts, and storage cleanup counts. The `default` branch refuses deletion with `invalid_argument.engine.branch_delete`. Deletion discards the branch's work - promote anything worth keeping onto another branch with `branch merge` before deleting, or keep working on the branch instead.

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

Example

Delete a branch.

strata branch create tempstrata branch delete tempstrata branch list

Parameters

NameTypeRequiredDescription
branchstringyesBranch name.

Returns

MutationAck<BranchDelete>

  • dataobject
  • typestring

Errors

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

← All 10 Branches commands

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