memory_unlink
Remove connections between stored memories in Memora's knowledge graph to maintain accurate relationships and declutter your data structure.
Instructions
Remove a link between two memories.
Args: from_id: Source memory ID to_id: Target memory ID bidirectional: If True, also remove reverse link (default: True)
Returns: Dict with removed links
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_id | Yes | ||
| to_id | Yes | ||
| bidirectional | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- memora/server.py:1126-1144 (handler)The implementation of the `memory_unlink` tool in `memora/server.py` as an MCP tool, which calls `_remove_link` to perform the operation.
async def memory_unlink( from_id: int, to_id: int, bidirectional: bool = True, ) -> Dict[str, Any]: """Remove a link between two memories. Args: from_id: Source memory ID to_id: Target memory ID bidirectional: If True, also remove reverse link (default: True) Returns: Dict with removed links """ result = _remove_link(from_id, to_id, bidirectional) _schedule_cloud_graph_sync() return result