deleteRow removes a row from the table.
no return value
indexis an integer representing the row that should be deleted.
However, the special index
-1can be used to remove the very last row of a table.
mytable.deleteRow(1); // delete the second row
thrown if the specified index is greater or equal to the number of available rows or when it is negative and not equal to the special index