forget_memory
Removes a memory by ID and cleans up any references to it from related memories, returning a clear error for invalid or missing IDs.
Instructions
Delete a memory by id.
Cascades: every other memory's memory:<id> reference to
this id is automatically stripped from its entities list.
Args:
id: The memory_id returned by save_memory. Accepts
strings (the canonical form, including user-supplied
"kb.policy"-style ids) as well as legacy ints
(coerced to their decimal string form).
Raises a friendly error if the id is invalid or the memory does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |