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

OptionDescription
--config <value>configuration file (default: ~/.config/perch/perch.yaml)
--dry-runreport what would be removed
--s3-deletedelete S3 objects for deleted messages
--dead-letter-age <value>delete dead letters older than this (default: 720h0m0s)
--vacuumrun incremental vacuum after cleanup
--spoolenforce storage.s3.spool_max_bytes
--help, -hshow help

Examples

perch gc --config /etc/perch/perch.yaml --dry-run

perch gc --config /etc/perch/perch.yaml --s3-delete

See also