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

# removeAllItems()

Removes all the menu items in the menu.

## Declaration

```swift
func removeAllItems()
```

## Discussion

Discussion This method is more efficient than removing menu items individually. Unlike the other remove methods, this method does not post didChangeItemNotification notifications.

## 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)
- [removeItem(at:)](appkit/nsmenu/removeitem(at:).md)
- [itemChanged(_:)](appkit/nsmenu/itemchanged(_:).md)
