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

# removeItem(at:)

Removes the menu item at a specified location in the menu.

## Declaration

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

## Parameters

- `index`: An integer index identifying the menu item.

## Discussion

Discussion After it removes the menu item, this method posts an didRemoveItemNotification.

## See Also

### Adding and Removing Menu Items

- [insertItem(_:at:)](appkit/nsmenu/insertitem(_:at:).md)
- [insertItem(withTitle:action:keyEquivalent:at:)](appkit/nsmenu/insertitem(withtitle:action:keyequivalent:at:).md)
- [addItem(_:)](appkit/nsmenu/additem(_:).md)
- [addItem(withTitle:action:keyEquivalent:)](appkit/nsmenu/additem(withtitle:action:keyequivalent:).md)
- [removeItem(_:)](appkit/nsmenu/removeitem(_:).md)
- [itemChanged(_:)](appkit/nsmenu/itemchanged(_:).md)
- [removeAllItems()](appkit/nsmenu/removeallitems().md)
