destroy data table if exists code example
Example 1: remove previous datatable instance
//Destroy the old Datatable
$('#equictntbl').DataTable().clear().destroy();
Example 2: drop table if exists
DROP TABLE IF EXISTS dbo.Scores
//Destroy the old Datatable
$('#equictntbl').DataTable().clear().destroy();
DROP TABLE IF EXISTS dbo.Scores