graph

edge.remove

Remove a graph edge.

strata graph remove-edge

wire graph_remove_edge

Removes one directed edge by its `(src, edge_type, dst)` triple. The endpoints are untouched. Removing an edge 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-edge --help

Example

Remove an edge.

strata graph create socialcreated graph socialstrata graph add-node social alicecreated node alice in socialstrata graph add-node social bobcreated node bob in socialstrata graph add-edge social alice knows bobcreated edge alice -[knows]-> bob in socialstrata graph remove-edge social alice knows bobdeleted edge alice -[knows]-> bob in socialstrata graph get-edge social alice knows bob(nil)

Parameters

NameTypeRequiredDescription
dststringyesDestination node id.
edge_typestringyesEdge type.
graphstringyesGraph name.
srcstringyesSource node id.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

MutationAck

  • 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/edge/remove.md