Delete a Memory Store
anthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Delete a Memory Store
Path parameters
memory_store_id: stringThe 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.
Headers
"anthropic-version": optional stringThe version of the Claude API you want to use.
The version of the Claude API you want to use.
Read more about versioning and our version history here.
"anthropic-beta": optional array of AnthropicBetaThis 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.
"message-batches-2024-09-24"Deprecated
"prompt-caching-2024-07-31"Deprecated
"pdfs-2024-09-25"Deprecated
"token-counting-2024-11-01"Deprecated
"token-efficient-tools-2025-02-19"Deprecated
"files-api-2025-04-14"Deprecated
"extended-cache-ttl-2025-04-11"Deprecated
"skills-2025-10-02"Deprecated
"cache-diagnosis-2026-04-07"Deprecated
"ce-user-management-2026-07-13"Deprecated
"anthropic-workspace-id": optional stringOptional 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
BetaManagedAgentsDeletedMemoryStore object{ 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.
curl https://api.anthropic.com/v1/memory_stores/$MEMORY_STORE_ID \
-X DELETE \
-H 'anthropic-version: 2026-10-21' \
-H 'anthropic-beta: agent-memory-2026-07-22' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY"{
"id": "id",
"type": "memory_store_deleted"
}Returns Examples
{
"id": "id",
"type": "memory_store_deleted"
}