graph

node.remove

Remove a graph node and its edges.

strata graph remove-node

wire graph_remove_node

Removes a node and every edge incident to it in one commit. Removing a node that does not exist is not an error: the acknowledgement reports `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 graph remove-node --help

Example

Remove a node.

strata graph create socialstrata graph add-node social alicestrata graph remove-node social alicestrata graph get-node social alice

Parameters

NameTypeRequiredDescription
graphstringyesGraph name.
node_idstringyesNode id.
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.

← All 31 Graph commands

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