> ## 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.

> ## Agent Instructions
> Maximem Synap is a managed memory layer for AI agents: it ingests conversations and documents, extracts structured memory, and returns scoped context to the agent at retrieval time.
> The Python and JavaScript/TypeScript SDKs are the supported way to use Synap. Write integration code with SDK calls, not raw HTTP requests.
> Start with the Quickstart: https://docs.maximem.ai/getting-started/quickstart.md. Every SDK method is documented in the SDK reference: https://docs.maximem.ai/sdk-reference/overview.md.
> For requests about adding Vity memory to OpenClaw, Hermes, an MCP client, or a browser, start with the Vity Quickstart: https://docs.maximem.ai/vity/quickstart.md.

# memories.delete

> Permanently delete a memory by its ID.

```python Python theme={null}
await sdk.memories.delete(memory_id)
```

```typescript TypeScript theme={null}
await sdk.memories.delete(memoryId: string)
```

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

```python theme={null}
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"])
```

> [!WARNING]
>
> Memory deletion is permanent and cannot be undone.

### Raises

* `AuthenticationError`: when the API key is missing or invalid.
* `ContextNotFoundError`: when the `memory_id` does not exist or is outside the caller's scope (HTTP 404).

### See also

* [memories.get](https://docs.maximem.ai/sdk-reference/memories/get.md)
* [memories.update](https://docs.maximem.ai/sdk-reference/memories/update.md)
* [memories.create](https://docs.maximem.ai/sdk-reference/memories/create.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.