Remove an edge between two memories
memory_unlinkRemove a specific edge between two memories by providing the exact from_id, to_id, and edge_type triple. Use to retract incorrect links without deleting the full memory records.
Instructions
Remove a previously created edge — pass the exact (from_id, to_id, edge_type) triple used at creation time. No wildcards. Idempotent. Use to retract incorrect links. To retract a whole memory, prefer memory_delete (keeps audit trail).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_id | Yes | Source memory id of the edge to remove. | |
| to_id | Yes | Target memory id of the edge to remove. | |
| edge_type | Yes | Edge type that was used when the edge was created. Must match exactly. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | `Edge removed: <from> -[<edge_type>]-> <to>` on success, or `Edge not found.` when the triple does not exist. |