How i can Deleting vertex inside fence ?

ex :

have  a line with 100  vertexes ,

i want to place fence and just deleting the vertex inside that fence ?