Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt

Use this file to discover all available pages before exploring further.

await sdk.memories.delete(memory_id)
Permanently delete a specific memory. The memory is removed from both the vector store and the graph store. Associated entity references are updated but the entities themselves are not deleted.

Parameters

memory_id
UUID
required
The memory ID to delete.

Returns

A confirmation dict.
memory_id
UUID
The ID of the memory that was deleted.
deleted_at
datetime
Server timestamp at which the deletion was applied.

Example

from maximem_synap import MaximemSynapSDK
from uuid import UUID

sdk = MaximemSynapSDK(api_key="synap_your_key_here")
await sdk.initialize()

result = await sdk.memories.delete(UUID("a1b2c3d4-e5f6-7890-abcd-ef0123456789"))
print(result["memory_id"])
print(result["deleted_at"])
Memory deletion is permanent and cannot be undone.

Raises

  • SynapAuthError — when the API key is missing or invalid.
  • SynapNotFoundError — when the memory_id does not exist or is outside the caller’s scope.

See also