Javascript12345var table = $('#myTable').DataTable(); $('#tableDestroy').on( 'click', function () { table.destroy();} );