delete_relationship
Remove a relationship between two entities by supplying its exact type and IDs. Creates an audit observation, excludes the edge from snapshots, and returns a discovery hint if no match is found.
Instructions
Delete a relationship. Requires the exact relationship_type between the two entities; if unknown, call list_relationships with source_entity_id and target_entity_id first to discover it. Creates a deletion observation so the relationship is excluded from snapshots and queries. Immutable and reversible for audit. Returns 404 with a discovery hint when no live relationship matches the supplied triple.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason for deletion (audit) | |
| user_id | No | Optional. Inferred from authentication if omitted. | |
| source_entity_id | Yes | Source entity ID | |
| target_entity_id | Yes | Target entity ID | |
| relationship_type | Yes | Exact relationship type of the existing edge. Accepts the same set create_relationship writes: structural types (PART_OF, REFERS_TO, EMBEDS) and domain types (works_at, related_to, owns). |