forget
Delete stored memories by ID to manage AI agent data and maintain privacy across sessions.
Instructions
Delete a stored memory by ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The memory ID to delete |
Implementation Reference
- src/index.js:131-133 (handler)The handler for the 'forget' tool, which performs a DELETE request to the agentmemo API.
case 'forget': result = await call('DELETE', `/memories/${args.id}`); return { content: [{ type: 'text', text: result.deleted ? `Memory ${args.id} deleted.` : 'Memory not found.' }] }; - src/index.js:58-67 (schema)The schema registration for the 'forget' tool.
name: 'forget', description: 'Delete a stored memory by ID.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'The memory ID to delete' }, }, required: ['id'], }, },