Registry stack documentation: machine-readable Markdown.
Index of all pages: https://docs.registrystack.org/llms.txt
Full corpus: https://docs.registrystack.org/llms-full.txt

# messagingctl retention command reference

> Generated syntax and options for messagingctl retention.

{/* Generated from Clap command definitions by scripts/generate-cli-reference.mjs. Run npm run generate. */}

Erase what the retention periods say has expired.

## Contract status

This page is generated from the public Clap command tree for Registry Stack source version `0.39.0` and catalog SHA-256 `253866140eb693976375943a07adfce3e3efb9724c0b0fcdff8b37aed3ac7280`. Hidden implementation commands are omitted.

## Usage

```text
messagingctl retention [OPTIONS] <COMMAND>
```

## Commands

| Command | Description |
| --- | --- |
| [`erase-expired`](./erase-expired/) | Report what had expired by --before, and erase it with --apply |

## Options

| Option | Always required | Default | Values | Environment | Description |
| --- | --- | --- | --- | --- | --- |
| `--format <FORMAT>` | No | `human` | `human`, `json` | n/a | Emit the selected command's report in this format |
| `-h, --help` | No | n/a | n/a | n/a | Print help |

## Generation contract

Run `npm run generate` from `docs/site` after changing a public command, argument, option, default, environment binding, or help description.