DataTable.DeleteAll

Overview

Marks all records in data table as deleted.

DataTable myDataTable.DeleteAll()

Remarks

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

Example

Delete all rows

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

See Also

Copyright © 2010 - 2023 Emakin. All rights reserved.