MIDI - delete doubles

Hi,

the function delete doubles deletes only one of the doubled notes (makes sense for normal MIDI use)
But i’m trying to delete all notes that are doubled (both of them) It’s for a polyphonic voicing thing I’m doing. Anyway I can’t manage to do that using the logical edior. Could anyone help ?