Skip to content

DataTable.DeleteAll

Overview

DataTable DataTable.DeleteAll ( )
Marks all records in data table as deleted.

Arguments

Remarks

Rows in table is not instantly deleted, to delete persistently you need to call Save method.

Examples

Delete all rows

var table = $Database.Get({
  Parameters : {
    TargetSchema: 'HR',
    TargetTable: 'Customers'
  }
});

table.DeleteAll();

table.Save();

See Also