<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableViewDelegate/tableView(_:didRemove:forRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTableViewDelegate(im)tableView:didRemoveRowView:forRow:"
  },
  "title" : "tableView(_:didRemove:forRow:)"
}
-->

# tableView(_:didRemove:forRow:)

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

```
@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

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 ``doc://com.apple.appkit/documentation/AppKit/NSView``-based table views.

---

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)