Docs menu · Reference

Removes an object 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 that identifies the affected target, the mutation effect, and commit facts when the operation changed stored state.

Examples

Remove an object type from the ontology.

CLI

$ strata graph create g
$ strata graph ontology define-object-type g person
$ strata graph ontology define-object-type g company
$ strata graph ontology delete-object-type g company
$ strata graph ontology summary g

Wire

{"graph":"g","type":"graph_create"}
{"graph":"g","name":"person","type":"graph_define_object_type"}
{"graph":"g","name":"company","type":"graph_define_object_type"}
{"graph":"g","name":"company","type":"graph_delete_object_type"}
{"graph":"g","type":"graph_ontology_summary"}

Parameters

NameTypeRequiredDescription
graphstringyesGraph name.
namestringyesObject type name.

Plus the optional scope: branch and space (default to the session branch and the "default" space).

Returns

MutationAck<GraphOntologyDelete>.

Errors

Invocation

  • CLI: strata graph ontology delete-object-type
  • Wire type: graph_delete_object_type

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