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

# Delete a memory

> Delete a memory entry.

`DELETE /api/v1/cloud/memory_stores/{memory_store_id}/memories/{memory_id}`

Deletes a memory entry. A version with operation `deleted` is recorded.

## Path parameters

| Parameter         | Description                   |
| ----------------- | ----------------------------- |
| `memory_store_id` | The store ID (`memstore_...`) |
| `memory_id`       | The memory ID (`mem_...`)     |

## Headers

| Header          | Required | Description    |
| --------------- | -------- | -------------- |
| `Authorization` | Yes      | `Bearer <PAT>` |

## Example request

```bash theme={null}
curl -X DELETE "https://api.qoder.com/api/v1/cloud/memory_stores/memstore_xxx/memories/mem_xxx" \
  -H "Authorization: Bearer $QODER_PAT"
```

## Response

```json theme={null}
{
  "id": "mem_...",
  "type": "memory_deleted"
}
```

## Errors

| HTTP | Type                    | Trigger                        |
| ---- | ----------------------- | ------------------------------ |
| 404  | `not_found_error`       | Store or memory does not exist |
| 409  | `invalid_request_error` | Store is archived              |
