$.fn.dataTable.tables returns non existing tables
$.fn.dataTable.tables returns non existing tables

If the dom element of a datatable has been removed, then the $.fn.dataTable.tables() method still returns its object.
I tried the destroy() method (both before and after the table is removed) and nothing changes.
Is there a way to completely remove a datatable?
This discussion has been closed.
Answers
The
$.fn.dataTable.tables()
API works in this test case:https://live.datatables.net/powivuku/1/edit
I think you will want to use
destroy()
before removing the DOMtable
.Can you provide a link to a test case showing the issue?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin