---
title: "widgetList(_:didRemoveRow:)"
framework: Notification Center
role: symbol
role_heading: Instance Method
platforms: [macOS 10.10+]
path: "notificationcenter/ncwidgetlistviewdelegate/widgetlist(_:didremoverow:)"
---

# widgetList(_:didRemoveRow:)

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

## Declaration

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

## Parameters

- `list`: The widget’s list view controller.
- `row`: The row that was removed.

## Discussion

Discussion List item deletion is not enabled unless the delegate implements this method and widgetList(_:shouldRemoveRow:). The item represented by row is removed from the list view controller’s contents array before this method is called.

## See Also

### Adding and Deleting Rows

- [widgetList(_:shouldRemoveRow:)](notificationcenter/ncwidgetlistviewdelegate/widgetlist(_:shouldremoverow:).md)
- [widgetListPerformAddAction(_:)](notificationcenter/ncwidgetlistviewdelegate/widgetlistperformaddaction(_:).md)
