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

# removeItem(at:)

Removes the item at the specified index.

## Declaration

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

## Parameters

- `index`: The zero-based index indicating which item to remove. Specifying 0 removes the item at the top of the menu. The index must be valid and non-negative.

## See Also

### Adding and removing items

- [addItem(withTitle:)](appkit/nspopupbuttoncell/additem(withtitle:).md)
- [addItems(withTitles:)](appkit/nspopupbuttoncell/additems(withtitles:).md)
- [insertItem(withTitle:at:)](appkit/nspopupbuttoncell/insertitem(withtitle:at:).md)
- [removeItem(withTitle:)](appkit/nspopupbuttoncell/removeitem(withtitle:).md)
- [removeAllItems()](appkit/nspopupbuttoncell/removeallitems().md)
