disconnect
Remove an edge from the knowledge graph, either by edge ID or by specifying the source and target memories.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | No* | Edge ID to remove |
from | number | No* | Source memory ID |
to | number | No* | Target memory ID |
relation | string | No | Optional filter by relation type |
* Either id alone, or from + to together.
Examples
Section titled “Examples”Remove by edge ID
Section titled “Remove by edge ID”{ "id": 15}Remove by source and target
Section titled “Remove by source and target”{ "from": 42, "to": 17}Remove specific relation type
Section titled “Remove specific relation type”{ "from": 42, "to": 17, "relation": "contradicts"}