Delete a Memory Store
Delete a Memory Store
Parameters
MemoryStoreDeleteParams parameters
required string memoryStoreIDPath parameterThe ID of the memory store to delete (memstore_...).
The ID of the memory store to delete (memstore_...).
Deleting a store also deletes all its memories and memory versions. It can't be undone.
IReadOnlyList<AnthropicBeta> betasHeader parameterThis endpoint is in beta: requests must send agent-memory-2026-07-22 or managed-agents-2026-04-01 in this header.
This endpoint is in beta: requests must send agent-memory-2026-07-22 or managed-agents-2026-04-01 in this header.
string workspaceIDHeader parameterOptional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
Returns
class BetaManagedAgentsDeletedMemoryStore { Type = "memory_store_deleted"; ID; }Confirmation that a memory_store was deleted.
Confirmation that a memory_store was deleted.
ID of the deleted memory store (a memstore_... identifier). The store and all its memories and versions are no longer retrievable.
using System;
using Anthropic.Models.Beta.MemoryStores;
MemoryStoreDeleteParams parameters = new()
{
MemoryStoreID = "memory_store_id"
};
var betaManagedAgentsDeletedMemoryStore = await client.Beta.MemoryStores.Delete(parameters);
Console.WriteLine(betaManagedAgentsDeletedMemoryStore);{
"id": "id",
"type": "memory_store_deleted"
}Returns Examples
{
"id": "id",
"type": "memory_store_deleted"
}