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

# Expire Memory

> Mark one memory expired. Reversible.

## Overview

Marks the memory expired. Pass `status: "active"` on recall to leave expired memories out. [Restore](https://docs.memanto.ai/cloud/api/memories/restore-memory.md) undoes it.

## Authentication

**x-api-key** `string` *required*

Your Memanto Cloud API key (`mk_...`). See [Authentication](https://docs.memanto.ai/cloud/api/introduction.md#authentication).

## Path Parameters

**agent\_id** `string` *required*

The agent's ID.

**memory\_id** `string` *required*

The memory's ID.

## Body

**reason** `string` (default: manual)

Recorded as `expired_by`.

```bash cURL theme={null}
curl -X POST "https://api.memanto.ai/agents/my-agent/memories/3f2a9c1e-…/expire" \
  -H "x-api-key: $MEMANTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "outdated"
  }'
```

```json 200 - OK theme={null}
{
  "agent_id": "my-agent",
  "memory_id": "3f2a9c1e-…",
  "status": "expired",
  "expired_at": "2026-11-19T15:04:05.000Z",
  "expired_by": "outdated"
}
```


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