---
title: "tableView(_:didRemove:forRow:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableviewdelegate/tableview(_:didremove:forrow:)"
---

# tableView(_:didRemove:forRow:)

Tells the delegate that a row view was removed from the table at the specified row.

## Declaration

```swift
@MainActor optional func tableView(_ tableView: NSTableView, didRemove rowView: NSTableRowView, forRow row: Int)
```

## Parameters

- `tableView`: The table view that sent the message.
- `rowView`: The row view.
- `row`: The index of the row.

## Discussion

Discussion If row equals -1, the row is being deleted from the table and is no longer a valid row; otherwise row is a valid row that is being removed by being moved off screen. note: This method is only valid for NSView-based table views.

## See Also

### Notification of row views being added or removed

- [tableView(_:didAdd:forRow:)](appkit/nstableviewdelegate/tableview(_:didadd:forrow:).md)
