Delete a memory
DELETE/v1/memory_stores/{memory_store_id}/memories/{memory_id}
Delete a memory
Parameters
Returns
Delete a memory
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
const betaManagedAgentsDeletedMemory = await client.beta.memoryStores.memories.delete(
"memory_id",
{ memory_store_id: "memory_store_id" }
);
console.log(betaManagedAgentsDeletedMemory.id);Response 200
{
"id": "id",
"type": "memory_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "memory_deleted"
}