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();
Further documentation.
Javascript example:
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: