---
url: 'https://adk.nht.io/api/@nhtio/adk/types/type-aliases/MemoryDeleteFn.md'
description: Removes a memory from the persistence layer by ID.
---

# Type Alias: MemoryDeleteFn

```ts
type MemoryDeleteFn = (ctx: TurnContext, id: string) => void | Promise<void>;
```

Defined in: [lib/contracts/turn\_runner\_context.ts:181](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/contracts/turn_runner_context.ts#L181)

Removes a memory from the persistence layer by ID.

## Parameters

| Parameter | Type                                          |
| --------- | --------------------------------------------- |
| `ctx`     | [`TurnContext`](../interfaces/TurnContext.md) |
| `id`      | `string`                                      |

## Returns

`void` | `Promise`<`void`>
