ST_RemovePoint — Remove point from a linestring.
geometry ST_RemovePoint(
geometry linestring, integer offset)
;
Remove a point from a linestring, given its 0-based index. Useful for turning a closed ring into an open line string
Availability: 1.1.0
This function supports 3d and will not drop the z-index.