graph

ontology.delete_link_type

Delete a draft link type.

strata graph ontology delete-link-type

wire graph_delete_link_type

Removes a link type from the graph's draft ontology. Deleting a type that was never declared is not an error: the acknowledgement reports `deleted: false`. Once the ontology is frozen this command fails with `failed_precondition.engine.graph_ontology_frozen`.

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 ontology delete-link-type --help

Example

Remove a link type from the ontology.

strata graph create gstrata graph ontology define-object-type g personstrata graph ontology define-link-type g knows person personstrata graph ontology delete-link-type g knows

Parameters

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

Returns

MutationAck<GraphOntologyDelete>

  • 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/ontology/delete_link_type.md