You can use a custom mapping that has a removeAllNodes and specifies the group to remove.
message.removeAllNodes('OBR[group=!OBR;/OBX-5=*]');
OBR[group=!OBR is used to select the the nodes including OBR OBX NTE until the next OBR.
; can be used once within the brackets [ ] adn is used to add another set of criteria.
/OBX selects any OBX segment after the OBR node.
