# `GSPalettes removeColorAtIndex:`

*Instance Method*

Removes the color at the specified index.

## Declaration

```swift
func removeColor(at colorIdx: UInt)
```

```objc
- (void) removeColorAtIndex:(NSUInteger) colorIdx;
```

```python
removeColorAtIndex_(colorIdx: int)
```

## Parameters

- `colorIdx` — The index of the color to remove.

