# `GSLayer removeShape:`

*Instance Method*

Removes a shape from the layer.

## Declaration

```swift
func removeShape(_ shape: GSShape)
```

```objc
- (void) removeShape:(GSShape *) shape;
```

```python
removeShape_(shape: GSShape)
```

## Discussion

The shape is also removed from the selection and no longer has this layer as its parent.

## See Also

### Removing and Replacing Shapes

- [`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 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.

