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

# messagingctl retention erase-expired command reference

> Generated syntax and options for messagingctl retention erase-expired.

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

Report what had expired by --before, and erase it with --apply.

## Contract status

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

## Usage

```text
messagingctl retention erase-expired [OPTIONS] --runtime-config <ABSOLUTE_FILE> --before <RFC3339>
```

## Options

| Option | Always required | Default | Values | Environment | Description |
| --- | --- | --- | --- | --- | --- |
| `--runtime-config <ABSOLUTE_FILE>` | Yes | n/a | n/a | n/a | Absolute path to the runtime configuration file |
| `--before <RFC3339>` | Yes | n/a | n/a | n/a | The RFC 3339 instant every retention period is counted back from. It must not be in the future |
| `--apply` | No | n/a | n/a | n/a | Erase. Without it, only report what would be erased |
| `--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.