We have added a "Delete" function the Rules Engine. It can be used to remove any whole part of an EDI document. For X12 documents you can remove a loop, segment, or element. For JSON documents you can remove a property or object.
For an example usage, please see our documentation on how to Use the Rules Engine.