const table = $("#yourTable").DataTable(); table.clear().draw(); // make sure to call draw() to see the table empty