---
title: "Training retention cron"
method: GET
path: "/cron/training-retention"
tags: ["Cron"]
---

# Training retention cron

`GET /cron/training-retention`

## Request

- Base URL: `https://api.onegoodarea.com`
- URL: `https://api.onegoodarea.com/cron/training-retention`
- Auth: none declared

Nightly retention purge for training tables. Internal cron endpoint.

## Response `200`

Default Response

- object
  - `retention_days` number, required
  - `cutoff` string, required
  - `planner_pairs_deleted` number, required
  - `brief_pairs_deleted` number, required

## Other responses

- `401`: Default Response
- `500`: Default Response
- `503`: Default Response

---

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