> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_RemovePoint

RETURN Line with removed point at given index, position can be omitted and then last one will be removed.

<img src="https://mintcdn.com/wherobots/wLm_IRUSNlHZTHJP/images/sql-functions/ST_RemovePoint/ST_RemovePoint.svg?fit=max&auto=format&n=wLm_IRUSNlHZTHJP&q=85&s=f1dc8daa2096aa949ca337276d0cb532" alt="ST_RemovePoint" width="500" height="300" data-path="images/sql-functions/ST_RemovePoint/ST_RemovePoint.svg" />

## Signatures

```sql theme={"system"}
ST_RemovePoint(geom: Geometry, position: Integer)
```

```sql theme={"system"}
ST_RemovePoint(geom: Geometry)
```

## Parameters

<ParamField body="geom" type="Geometry" required>
  The input geometry.
</ParamField>

<ParamField body="position" type="Integer">
  The position value.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_RemovePoint(ST_GeomFromText("LINESTRING(0 0, 1 1, 1 0)"), 1)
```

```
LINESTRING(0 0, 1 0)
```
