---
title: "removeRow(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsruleeditor/removerow(at:)"
---

# removeRow(at:)

Removes the row at a given index.

## Declaration

```swift
func removeRow(at rowIndex: Int)
```

## Parameters

- `rowIndex`: The index of a row in the receiver. important: Raises an NSRangeException if rowIndex is less than 0 or greater than or equal to the number of rows.

## Discussion

Discussion Any subrows of the deleted row are adopted by the parent of the deleted row, or are made root rows.

## See Also

### Manipulating Rows

- [addRow(_:)](appkit/nsruleeditor/addrow(_:).md)
- [insertRow(at:with:asSubrowOfRow:animate:)](appkit/nsruleeditor/insertrow(at:with:assubrowofrow:animate:).md)
- [removeRows(at:includeSubrows:)](appkit/nsruleeditor/removerows(at:includesubrows:).md)
