clear () and a draw () use in angular datatable code example
Example: datatables clear table
const table = $("#yourTable").DataTable();
table.clear().draw(); // make sure to call draw() to see the table empty
const table = $("#yourTable").DataTable();
table.clear().draw(); // make sure to call draw() to see the table empty