# `GSLayer removeShapesAtIndexes:`

*Instance Method*

Removes the shapes at the given linear shape indexes.

## Declaration

```swift
func removeShapes(at indexes: IndexSet)
```

```objc
- (void) removeShapesAtIndexes:(NSIndexSet *) indexes;
```

```python
removeShapesAtIndexes_(indexes: NSIndexSet)
```

## 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 removeObjectFromShapesAtIndex:`](/Core/GlyphsCore/GSLayer/removeObjectFromShapesAtIndex:) — Removes the shape at the given linear shape index.
- [`GSLayer replaceShapeAtIndex:withShape:`](/Core/GlyphsCore/GSLayer/replaceShapeAtIndex:withShape:) — Replaces the shape at the given linear shape index.

