Delete/Cull "unused" edges in non-planar faces in brep

Hi there,

I have been asking myself how to get rid of unnecssary edges that result from e.g. stretching/moving face operations.

MergeAllCoplanarFaces clearly won’t work here.
Is there any chance via a command or RhinoCommon?

Thanks,
T.

if it is a cylindrical surface, use @spb 's scripts to replace them with a single cylindrical surface.
You can find it on food4rhino

Thanks, @Gijs!