====== Selective deletion of messages ====== ===== Variant 1 ===== If for certain reasons the messages should not be cleaned up with a Global or node specific [[en:howtos:cleanup|CleanUp Job]], then this method is useful. With a [[en:prozessdefinition:jobs:jobsteps:allgemein: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. {{:howtos:deletespecificmessages.png|}} These messages can then be passed on to another job by [[en:prozessdefinition:jobs:jobsteps:allgemein:delegatorjob|]]. The delegated messages then can be deleted with the [[en:prozessdefinition:jobs:jobsteps:allgemein:messagedeletor|]]. {{:howtos:messagedeletor.png|}} {{:images:sign_warning.png?nolink|}}**Note:** If one wants to clean up globally or node wide, one will go for [[en:howtos:cleanup|]] ===== Variant 2 ===== For example, if you want to delete all messages except for a specific message type, you can use the following solution: - create a separate [[en:kommunikation:nachrichtenkoerbe:anlegen|message box]] for the specific message type. - set the [[en:prozessdefinition:jobs:jobsteps:allgemein:entitymessagecreator|containerization]] of the specific message type to the previously created new message box. - modify the standard cleanup job((To be found in the standard delivery in the directory "..\eBiss3\StandardTemplates\Jobs\CleanupJob".)) - modify the existing job object [[en:prozessdefinition:jobs:jobsteps:allgemein:removemessages|]] set the parameter "**Not in the message box**" to the previously created message box, which excludes these messages from the clean up. - set an additional job object [[en:prozessdefinition:jobs:jobsteps:allgemein:removemessages|]] with the parameter "**In the message box**" to the previously created message basket and set the parameter "**Created before**" to the desired number of days. - enque this additional job object inside the standard cleanup job.