If for certain reasons the messages should not be cleaned up with a Global or node specific CleanUp Job, then this method is useful. With a MessageCollector a specific message basket can be selected and the messages to be selected therein with Filter on the status and other filters can be selected.
These messages can then be passed on to another job by DelegatorJob. The delegated messages then can be deleted with the MessageDeletor.
Note: If one wants to clean up globally or node wide, one will go for Cleaning up in eBiss
For example, if you want to delete all messages except for a specific message type, you can use the following solution: