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

# removeItem(identifier:)

Removes the item with matching itemIdentifier in the receiving toolbar. If multiple items share the same identifier (as is the case with space items) all matching items will be removed. To remove only a single space item, use -removeItemAtIndex: instead.

## Declaration

```swift
func removeItem(identifier itemIdentifier: NSToolbarItem.Identifier)
```

## Discussion

Discussion Any change made will be propagated immediately to all other toolbars with the same identifier.
