Configure automated Interchange purge

You can configure Interchange to delete unwanted database records and files in the backup directory based on the age of the records and files.

To configure automatic purging:

  1. In the Interchange user interface, from the menu bar select Trading configuration > Manage trading configuration to open the Communities page.
  2. From list of tasks, select Configure purge dates for trading engine messages.
  3. Select an option:
    • Delete messages on their purge dates
    • By default, Interchange is set to delete database records and backup files after they have been in the system for 45 days. Use the years / months / days fields to change the age settings. The system checks every 15 minutes to delete records and documents that have reached their purge dates.
    • If you change the purge interval, the new interval affects only messages processed after the change. The purge dates of messages processed before the change remain the same. But you can use another tool to change purge dates retroactively, to synchronize with a new purge interval. See Purge Interchange manually.
    • Only database records and messages in a final state are deleted. A final state is when no more processing action is pending. Final states are reported in Message Tracker as: Delivered, Failed and Resubmitted.
    • Turn off purging, but continue setting purge dates
    • You can choose to turn off purging of database records and backup files. This is not recommended unless you have requirements for maintaining database records and backup files indefinitely.
  4. Click Save changes.


If you use a database other than Oracle, an event such as the following is written to the event log file when a message is deleted:

With Oracle, events are handled with a stored procedure, and events such as this are not written to the log.

We recommend setting the age for deleting messages identical to the age for deleting message-related events. For more information, see Configure event purge.

Note for CSOS users

If you are licensed for CSOS functionality, CSOS records and message backups are scheduled to be retained for two years, beginning with version 5.4. The CSOS retention period is configurable, but only with the help of Axway.

If the page for configuring purge dates calls for deleting records and messages less than 2 years old, CSOS records and messages do not abide by this schedule and are retained for two years. If the setting on this page is more than two years, CSOS messages are retained for the longer period.

Related topics

Related Links