delete startpoint and endpoint