Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesMemory ID to delete.

Implementation Reference

  • 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] },
      );
    },
  • 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 };
      },
    },
  • Interface definition for deleteMemory in the AianaAdapter type contract.
    deleteMemory(id: string): Promise<void>;
  • 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"],
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/git-fabric/aiana'

If you have feedback or need assistance with the MCP directory API, please join our Discord server