delete boundary edge in a 2D mesh?


Can I delete Element1D in python? It seems this function was not exported to python yet.
We can only delete Element2D in python using DeleteSurfaceElement, is it true?

I am working on a manual 2D mesh adjustment, where certain boundary edges will be split into two new edges. In this case, I would like to remove the parent edge in the mesh since it is not attached to any volume elements anymore.