Synopsis
perch gc [OPTIONS]Description
Remove orphaned local blobs, dead letters older than –dead-letter-age, enforce the S3 spool limit, and optionally delete S3 objects for deleted messages. An incremental vacuum runs by default.
Notes
- –s3-delete is ignored in SQLite mode.
- Without –s3-delete, S3 tombstones accumulate.
Options
| Option | Description |
|---|---|
--config <value> | configuration file (default: ~/.config/perch/perch.yaml) |
--dry-run | report what would be removed |
--s3-delete | delete S3 objects for deleted messages |
--dead-letter-age <value> | delete dead letters older than this (default: 720h0m0s) |
--vacuum | run incremental vacuum after cleanup |
--spool | enforce storage.s3.spool_max_bytes |
--help, -h | show help |
Examples
perch gc --config /etc/perch/perch.yaml --dry-run
perch gc --config /etc/perch/perch.yaml --s3-delete