# `GSFont removeObjectFromAxes:`

*Instance Method*

Removes a font axis.

## Declaration

```swift
func removeAxis(_ axis: GSAxis)
```

```objc
- (void) removeObjectFromAxes:(GSAxis *) axis;
```

```python
removeObjectFromAxes_(axis: GSAxis)
```

## Parameters

- `axis` — The axis to remove.

## Discussion

The removed axis no longer belongs to the font.

## See Also

### Axes

- [`GSFont.axes`](/Core/GlyphsCore/GSFont/axes) — The font axes defining the font design space.
- [`GSFont countOfAxes`](/Core/GlyphsCore/GSFont/countOfAxes) — The number of font axes.
- [`GSFont objectInAxesAtIndex:`](/Core/GlyphsCore/GSFont/objectInAxesAtIndex:) — The font axis at an index, or `nil` when the index is out of range.
- [`GSFont indexOfObjectInAxes:`](/Core/GlyphsCore/GSFont/indexOfObjectInAxes:) — Returns the index of a font axis, or `NSNotFound` when the axis is not in the font.
- [`GSFont.canonicalAxes`](/Core/GlyphsCore/GSFont/canonicalAxes) — The canonical font axes.
- [`GSFont axisForId:`](/Core/GlyphsCore/GSFont/axisForId:) — Returns the font axis with an identifier, or `nil` when no axis matches.
- [`GSFont axisForName:`](/Core/GlyphsCore/GSFont/axisForName:) — Returns the font axis with a name, or `nil` when no axis matches.
- [`GSFont axisForTag:`](/Core/GlyphsCore/GSFont/axisForTag:) — Returns the font axis with an OpenType variation tag, or `nil` when no axis matches.
- [`GSFont addAxis:`](/Core/GlyphsCore/GSFont/addAxis:) — Adds a font axis.
- [`GSFont insertObject:inAxesAtIndex:`](/Core/GlyphsCore/GSFont/insertObject:inAxesAtIndex:) — Inserts a font axis at an index.
- [`GSFont removeObjectFromAxesAtIndex:`](/Core/GlyphsCore/GSFont/removeObjectFromAxesAtIndex:) — Removes the font axis at an index.
- [`GSFont legacyAxes`](/Core/GlyphsCore/GSFont/legacyAxes) — Returns font axes derived from legacy master coordinate data.

