---
title: removeAllItems()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nscombobox/removeallitems()
---

# removeAllItems()

Removes all items from the receiver’s internal item list.

## Declaration

```swift
func removeAllItems()
```

## Discussion

Discussion This method logs a warning if the usesDataSource property is true.

## See Also

### Configuring the Combo Box Items

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