---
title: "removeItem(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscomboboxcell/removeitem(at:)"
---

# removeItem(at:)

Removes the object at the specified location from the combo box’s internal item list.

## Declaration

```swift
func removeItem(at index: Int)
```

## Parameters

- `index`: The index of the object to remove from the combo box’s internal item list. All items beyond index are moved up one slot to fill the gap.

## Discussion

Discussion The removed object receives a release message. This method raises an NSRangeException if index is beyond the end of the list and logs a warning if usesDataSource is true.

## See Also

### Working with an Internal List

- [addItems(withObjectValues:)](appkit/nscomboboxcell/additems(withobjectvalues:).md)
- [addItem(withObjectValue:)](appkit/nscomboboxcell/additem(withobjectvalue:).md)
- [insertItem(withObjectValue:at:)](appkit/nscomboboxcell/insertitem(withobjectvalue:at:).md)
- [objectValues](appkit/nscomboboxcell/objectvalues.md)
- [removeAllItems()](appkit/nscomboboxcell/removeallitems().md)
- [removeItem(withObjectValue:)](appkit/nscomboboxcell/removeitem(withobjectvalue:).md)
- [numberOfItems](appkit/nscomboboxcell/numberofitems.md)
