---
title: "POST /api/v1/{context_id}/lifecycle/expire"
method: POST
path: "/api/v1/{context_id}/lifecycle/expire"
---

# POST /api/v1/{context_id}/lifecycle/expire

`POST /api/v1/{context_id}/lifecycle/expire`

Run category-driven expiry sweep for context-category memories

## Path parameters

- `context_id` string, required

## Response `200`

- LifecycleResponseJson
  - `affected` integer, required

## Other responses

- `401` — Unauthorized
- `422` — Invalid context id

---

[API](https://skmtc.net/surrealdb/apis/spectron.md) · [All operations](https://skmtc.net/surrealdb/apis/spectron/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surrealdb/spectron/versions/52b41ab517b6/schema)
