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

# removeItem(withTitle:)

Removes the item with the specified title from the menu.

## Declaration

```swift
func removeItem(withTitle title: String)
```

## Parameters

- `title`: The title of the item you want to remove. If no menu item exists with the specified title, this method triggers an assertion.

## 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(at:)](appkit/nspopupbuttoncell/removeitem(at:).md)
- [removeAllItems()](appkit/nspopupbuttoncell/removeallitems().md)
