> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memcontext.in/llms.txt
> Use this file to discover all available pages before exploring further.

# delete_memory

> Remove a memory by ID.

## Description

`delete_memory` removes a memory from future search results. In most cases, you
do not need to call this directly. When new information replaces old
information, save the new memory and MemContext can handle the update.

## Parameters

| Parameter  | Type   | Required | Description                                                        |
| ---------- | ------ | -------- | ------------------------------------------------------------------ |
| `memoryId` | string | Yes      | The memory ID to delete. Use the `id` returned by `search_memory`. |

## Example

```
delete_memory({
  memoryId: "a1b2c3d4-..."
})
```

## Response

Returns `{ success: true }` on success, or a `404` error if the memory was not
found. Deleted memories stop appearing in search and list results.
