Is it possible to set an expiration date for persisted event deliveries

Hello, I would like to know if there is any mechanism to delete event deliveries and delivery attempts from the database after a certain period of time, e.g: delete a delivery after 1 month

Yes, there’s an instance-level configuration to configure retention policies. See here then you configure object store.

  "retention_policy": {
      // Specify the period of time to go back before purging events, events within the specifed time period will not be purged.
      // The environment variable equivalent is CONVOY_RETENTION_POLICY
      "policy": "720h",

      // Specify whether the retention policy job should run. The environment variable equivalent is CONVOY_RETENTION_POLICY_ENABLED
      "enabled": false,
  }
1 Like

Nice, thank you very much!

1 Like