<!--
{
  "availability" : [
    "macOS: 10.10.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NotificationCenter",
  "identifier" : "/documentation/NotificationCenter/NCWidgetListViewDelegate/widgetList(_:didRemoveRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Notification Center"
    ],
    "preciseIdentifier" : "c:objc(pl)NCWidgetListViewDelegate(im)widgetList:didRemoveRow:"
  },
  "title" : "widgetList(_:didRemoveRow:)"
}
-->

# widgetList(_:didRemoveRow:)

Tells the delegate that the specified row was removed from the list.

```
optional func widgetList(_ list: NCWidgetListViewController, didRemoveRow row: Int)
```

## Parameters

`list`

The widget’s list view controller.

`row`

The row that was removed.

## Discussion

List item deletion is not enabled unless the delegate implements this method and [`widgetList(_:shouldRemoveRow:)`](/documentation/NotificationCenter/NCWidgetListViewDelegate/widgetList(_:shouldRemoveRow:)). The item represented by `row` is removed from the list view controller’s [`contents`](/documentation/NotificationCenter/NCWidgetListViewController/contents) array before this method is called.

---

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)