Delete extra points after make2d command

Is there any command or script to remove those intermediate points. the curve is created by section and CurveBoolean command. i tried simplifyCrv command but it is not working so is there any script that dissolve the curve point by some angle tolerance.

If they’re polylines, maybe:
ReducePolylines.py (2.7 KB)