graph

delete

Delete a graph and its visible data.

strata graph delete

wire graph_delete

Deletes a named graph and every visible node, edge, binding, and ontology row it owns. Deleting a graph that does not exist is not an error: the acknowledgement reports `deleted: false` with a `not_found` effect. Earlier states remain readable through time travel on other commands.

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

Example

Delete a graph.

strata graph create tempstrata graph delete tempstrata graph list

Parameters

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

Returns

MutationAck<GraphDelete>

  • 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.graph_namenevernot_started
not_found.engine.graphnevernot_applicable
← All 31 Graph commands

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