# `mix continuum.archive_continued_chains`
[🔗](https://github.com/Yyeger/Continuum/blob/main/lib/mix/tasks/continuum.archive_continued_chains.ex#L1)

Deletes expired non-tail runs from `continue_as_new` chains.

    mix continuum.archive_continued_chains --repo MyApp.Repo --older-than 30d
    mix continuum.archive_continued_chains --repo MyApp.Repo --older-than 30d --execute

The task is a dry run by default. v0.4 performs deletion, not archival into a
separate table. A run is eligible only when it is a completed non-tail cycle,
older than the cutoff, past `retention_until`, and not part of a child chain
whose parent is still non-terminal.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
