<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPopUpButtonCell/removeItem(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPopUpButtonCell(im)removeItemAtIndex:"
  },
  "title" : "removeItem(at:)"
}
-->

# removeItem(at:)

Removes the item at the specified index.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)