forget
Remove specific memories from AI systems by ID to manage stored information and correct persistent data.
Instructions
Delete a memory by ID.
Args:
memory_id: The memory to delete.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- neveronce/server.py:160-170 (handler)The MCP tool registration and handler for 'forget'.
@mcp.tool() def forget(memory_id: int) -> str: """Delete a memory by ID. Args: memory_id: The memory to delete. """ mem = _get_mem() if mem.forget(memory_id): return f"Memory #{memory_id} deleted." return f"Memory #{memory_id} not found." - neveronce/memory.py:127-129 (helper)The underlying implementation of memory deletion in the Memory class.
def forget(self, memory_id: int) -> bool: """Delete a memory by ID. Returns True if it existed.""" return self.db.delete(memory_id)