The remove command is used to delete rows from a table.
remove v : Remove specified rows or columns from a table.
remove range
The example script below, shows four methods for targeting specific rows to be removed:
| 01 | tell selectedTable | |
| 02 | -- identify the target row by position | |
| 03 | remove last row | |
| 04 | ||
| 05 | -- identify the target row by index | |
| 06 | remove row 2 | |
| 07 | ||
| 08 | -- identify the target row by name | |
| 09 | remove row "February" | |
| 10 | ||
| 11 | -- identity the target row(s) from selection range | |
| 12 | set theseRows to every row of selection range | |
| 13 | repeat with i from 1 to the count of theseRows | |
| 14 | remove (item i of theseRows) | |
| 15 | end repeat | |
| 16 | end tell |