---
title: "toolbarDidRemoveItem(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstoolbardelegate/toolbardidremoveitem(_:)"
---

# toolbarDidRemoveItem(_:)

Tells the delegate that the toolbar removed the specified item.

## Declaration

```swift
@MainActor optional func toolbarDidRemoveItem(_ notification: Notification)
```

## Parameters

- `notification`: A notification named doc://com.apple.appkit/documentation/AppKit/NSToolbar/didRemoveItemNotification.

## Discussion

Discussion Use this method to update data structures related to your toolbar items.

## See Also

### Adding and removing items

- [toolbar(_:itemForItemIdentifier:willBeInsertedIntoToolbar:)](appkit/nstoolbardelegate/toolbar(_:itemforitemidentifier:willbeinsertedintotoolbar:).md)
- [toolbarWillAddItem(_:)](appkit/nstoolbardelegate/toolbarwilladditem(_:).md)
- [NSToolbar.Identifier](appkit/nstoolbar/identifier-swift.typealias.md)
