---
title: "Archive a long-term memory"
method: DELETE
path: "/api/memory/{id}"
tags: ["Memory"]
---

# Archive a long-term memory

`DELETE /api/memory/{id}`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/memory/{id}`
- Auth: API key in cookie `luca.session_token`

Archives the memory instead of erasing it, so Luca stops using the fact while the record and its provenance survive. Reverse it with a `restore` patch. A typed fact answers 409 `memory_fact_locked`: confirm or reject it instead.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `expectedUpdatedAt` string, date-time, required

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- MemoryDeleteResponse
  - `ok` true, required

## Other responses

- `401`: unauthorized
- `409`: conflict
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
