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

# tai runs

> List and prune the platform runs index.

List and prune the platform runs index.

```console theme={null}
$ tai runs [OPTIONS] COMMAND [ARGS]...
```

## `tai runs list`

List platform runs, newest first, filtered by the given flags.

Example: `tai runs list --preset support --outcome error`

```console theme={null}
$ tai runs list [OPTIONS]
```

| Option                        | Description                                                                     |
| ----------------------------- | ------------------------------------------------------------------------------- |
| `--preset` `&lt;str&gt;`      | Filter to one preset name.                                                      |
| `--version` `&lt;int&gt;`     | Filter to one preset version.                                                   |
| `--user` `&lt;str&gt;`        | Filter to one run user (attribution user identity).                             |
| `--session` `&lt;str&gt;`     | Filter to one run session/thread (attribution session identity).                |
| `--interaction` `&lt;str&gt;` | Filter to one park lifecycle by interaction id (the parked run and its resume). |
| `--outcome` `&lt;str&gt;`     | Filter to one outcome: running, success, error, parked, or aborted.             |
| `--from` `&lt;str&gt;`        | Inclusive lower bound on the run start as an ISO-8601 instant.                  |
| `--to` `&lt;str&gt;`          | Inclusive upper bound on the run start as an ISO-8601 instant.                  |
| `--page` `&lt;int&gt;`        | Page number (1-based).                                                          |
| `--page-size` `&lt;int&gt;`   | Rows per page.                                                                  |
| `--json` / `--no-json`        | Emit raw JSON instead of human tables.                                          |

## `tai runs prune`

Delete runs-index rows older than the configured retention window.

A deployment-wide destructive purge (admin only), mirroring the checkpoint sweep.

Example: `tai runs prune`

```console theme={null}
$ tai runs prune [OPTIONS]
```

| Option                 | Description                            |
| ---------------------- | -------------------------------------- |
| `--json` / `--no-json` | Emit raw JSON instead of human tables. |
