<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMenu/didRemoveItemNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSMenuDidRemoveItemNotification"
  },
  "title" : "didRemoveItemNotification"
}
-->

# didRemoveItemNotification

Posted after a menu item is removed from the menu.

```
class let didRemoveItemNotification: NSNotification.Name
```

## Discussion

The notification object is the instance of `NSMenu` that just removed the menu item. The `userInfo` dictionary contains the following information.

|Key                 |Value                                                                                                                                                                                                |
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|`@"NSMenuItemIndex"`|An `NSNumber` object containing the integer index of the menu item that was removed. Note that this index may no longer be valid and in any event no longer points to the menu item that was removed.|

To observe this notification using Swift concurrency, use [`NSMenu.DidRemoveItemMessage`](/documentation/AppKit/NSMenu/DidRemoveItemMessage).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)