Table.resetTable

Removes all rows from the table and resets the current row (see #getCurrentRow()).

Further documentation.

Javascript example:

 tables.ORDERS.resetTable();
 
Note that resetTable() will not result in the deletion of records from a backing resource specified for the table e.g. a Database Resource. i.e. any subsequent #updateTable() method will not remove these rows from the attached resource. To remove all rows from the table and the backing resource use:
 var t1 = tables.MyTable;
 var rows = t1.rows;
 while (rows.next())
 {
   t1.deleteRow();
 }
 t1.updateTable();