# `GSLayer removeAnnotation:`

*Instance Method*

Removes an annotation.

## Declaration

```swift
func removeAnnotation(_ anAnnotation: GSAnnotation)
```

```objc
- (void) removeAnnotation:(GSAnnotation *) anAnnotation;
```

```python
removeAnnotation_(anAnnotation: GSAnnotation)
```

## Discussion

This has no effect when the annotation is not in the layer.

## See Also

### Adding and Removing Annotations

- [`GSLayer addAnnotation:`](/Core/GlyphsCore/GSLayer/addAnnotation:) — Adds an annotation.
- [`GSLayer removeObjectFromAnnotationsAtIndex:`](/Core/GlyphsCore/GSLayer/removeObjectFromAnnotationsAtIndex:) — Removes the annotation at an index.

