aiana_memory_delete
Permanently delete stored memory data by ID to manage privacy and storage in the semantic memory system.
Instructions
Permanently delete a memory by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Memory ID to delete. |
Implementation Reference
- src/adapters/env.ts:261-270 (handler)Actual implementation of deleteMemory that performs the DELETE request to Qdrant Cloud API. Waits for the collection to be ready, then calls the /points/delete endpoint with the memory ID.
async deleteMemory(id: string): Promise<void> { await ready; await qdrantRequest( qdrantUrl, qdrantApiKey, "POST", `/collections/${COLLECTION}/points/delete`, { points: [id] }, ); }, - src/layers/memories.ts:64-69 (handler)Layer wrapper function that delegates to the adapter's deleteMemory method. This is the pure function called by the tool executor.
export async function deleteMemory( adapter: AianaAdapter, id: string, ): Promise<void> { return adapter.deleteMemory(id); } - src/app.ts:98-112 (registration)Tool registration with name, description, input schema (requires 'id' parameter), and execute function that calls layers.memories.deleteMemory and returns success confirmation.
{ name: "aiana_memory_delete", description: "Permanently delete a memory by its ID.", inputSchema: { type: "object", properties: { id: { type: "string", description: "Memory ID to delete." }, }, required: ["id"], }, execute: async (args) => { await layers.memories.deleteMemory(adapter, args.id as string); return { id: args.id, deleted: true }; }, }, - src/types.ts:38-38 (schema)Interface definition for deleteMemory in the AianaAdapter type contract.
deleteMemory(id: string): Promise<void>; - src/app.ts:101-107 (schema)Input schema definition for the aiana_memory_delete tool specifying the 'id' parameter requirement.
inputSchema: { type: "object", properties: { id: { type: "string", description: "Memory ID to delete." }, }, required: ["id"], },