# `GSPath removeOffcurveWithStartIdx:endIdx:`

*Instance Method*

Removes an off-curve node range from a quadratic segment.

## Declaration

```swift
func removeOffcurve(withStartIdx startIdx: Int, endIdx: Int)
```

```objc
- (void) removeOffcurveWithStartIdx:(NSInteger) startIdx endIdx:(NSInteger) endIdx;
```

```python
removeOffcurveWithStartIdx_endIdx_(startIdx: int, endIdx: int)
```

## See Also

### Convenience

- [`GSPath positionAtIndex:`](/Core/GlyphsCore/GSPath/positionAtIndex:) — Position for a node index.
- [`GSPath makeCornerFirstNodeIndex:endNodeIndex:`](/Core/GlyphsCore/GSPath/makeCornerFirstNodeIndex:endNodeIndex:) — Replaces a node range with a sharp corner fitted to the neighboring segments.
- [`GSPath openCornerAtNode:offset:`](/Core/GlyphsCore/GSPath/openCornerAtNode:offset:) — Opens an on-curve corner by the offset distance.

