How to save add/delete column in handson table

Like on persistentState, to save column width, sorting and move on localStorage
I want If any column I have add/delete, its saved on localstorage

If any other idea to implement this, please share.

You can get an actual set of data via getData() method. It will (by the number of objects/arrays) tell you how many columns and rows are in a current dataset.