Hi
just tested the trigger in attached screenshot, it retains markets where settled pl is not equal to zero and deletes markets where settled pl is equal to zero.
I wonder if you have some other setting, for example, stopping monitoring markets after a certain time etc.