Plot boundary data 2D

Hi,
I try to extract boundary datas on a 2D mesh using “ExtractSurface” and “FeatureEdges” with only “boundary edges” selected. It returns all the edges of the mesh including those inside the mesh.
How can i obtain only the edges on the boundary ?
thanks.