# `GSComponent removePieceValueForKey:`

*Instance Method*

Removes an explicit interpolation value for a smart-component axis.

## Declaration

```swift
func removePieceValue(forKey key: String)
```

```objc
- (void) removePieceValueForKey:(NSString *) key;
```

```python
removePieceValueForKey_(key: str)
```

## Parameters

- `key` — The axis ID.

## Discussion

The axis then uses the coordinate of the corresponding base-glyph layer.

## See Also

### Smart Components

- [`GSComponent.pieceSettings`](/Core/GlyphsCore/GSComponent/pieceSettings) — Explicit interpolation values for smart-component axes.
- [`GSComponent setPieceSettingsFast:`](/Core/GlyphsCore/GSComponent/setPieceSettingsFast:) — Replaces the smart-component settings without copying, undo, or change notifications.
- [`GSComponent setPieceValue:forKey:`](/Core/GlyphsCore/GSComponent/setPieceValue:forKey:) — Sets an explicit interpolation value for a smart-component axis.
- [`GSComponent pieceValueForKey:`](/Core/GlyphsCore/GSComponent/pieceValueForKey:) — The explicit interpolation value for a smart-component axis.
- [`GSComponent valueForAxis:`](/Core/GlyphsCore/GSComponent/valueForAxis:) — The effective interpolation value for a smart-component axis.

