Deleting persisted message with task sheduler

Hello,

I have a request concerning the deletion of persisted messages in Service Orchestrator.

I have a sequence storing each incoming message in a Tamino persistent store to prevent losing messages when the server or one of its components fails, and thus the sequence fails.

Servline told me that when a sequence completes successfully for a message, the message is not deleted automatically from the persistent store. The deletion must be done explicitly.

To implement this deletion Servline has suggested to use a sequence which queries the persistent store for completed messages and then deletes them. A task scheduler invokes the sequence periodically.

Has any of you already implemented this solution? And could you share this sequence and task scheduler definition with me?

Thanks in advance,
Philippe