# `GSLayer removeShapes:`

*Instance Method*

Removes shapes from the layer.

## Declaration

```swift
func removeShapes(_ shapes: [GSShape])
```

```objc
- (void) removeShapes:(NSArray<GSShape *> *) shapes;
```

```python
removeShapes_(shapes: list[GSShape])
```

## See Also

### Removing and Replacing Shapes

- [`GSLayer removeShape:`](/Core/GlyphsCore/GSLayer/removeShape:) — Removes a shape from the layer.
- [`GSLayer removeShapesAtIndexes:`](/Core/GlyphsCore/GSLayer/removeShapesAtIndexes:) — Removes the shapes at the given linear shape indexes.
- [`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.

