How to delete invisible lines
Those edges are required if you wish to keep the faces. In your screen shot they appear to be softened so they won’t show under normal circumstances if Hidden Geometry is not shown.