# `GSLayer removeObjectFromAnnotationsAtIndex:`

*Instance Method*

Removes the annotation at an index.

## Declaration

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

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

```python
removeObjectFromAnnotationsAtIndex_(idx: int)
```

## See Also

### Adding and Removing Annotations

- [`GSLayer addAnnotation:`](/Core/GlyphsCore/GSLayer/addAnnotation:) — Adds an annotation.
- [`GSLayer removeAnnotation:`](/Core/GlyphsCore/GSLayer/removeAnnotation:) — Removes an annotation.

