# `GSLayer removeObjectFromShapesAtIndex:`

*Instance Method*

Removes the shape at the given linear shape index.

## Declaration

```swift
func removeShape(at idx: UInt)
```

```objc
- (void) removeObjectFromShapesAtIndex:(NSUInteger) idx;
```

```python
removeObjectFromShapesAtIndex_(idx: int)
```

## See Also

### Removing and Replacing Shapes

- [`GSLayer removeShape:`](/Core/GlyphsCore/GSLayer/removeShape:) — Removes a shape from the layer.
- [`GSLayer removeShapes:`](/Core/GlyphsCore/GSLayer/removeShapes:) — Removes shapes from the layer.
- [`GSLayer removeShapesAtIndexes:`](/Core/GlyphsCore/GSLayer/removeShapesAtIndexes:) — Removes the shapes at the given linear shape indexes.
- [`GSLayer replaceShapeAtIndex:withShape:`](/Core/GlyphsCore/GSLayer/replaceShapeAtIndex:withShape:) — Replaces the shape at the given linear shape index.

