Removes tabs.
remove(id1, [id2], ...)

id | string, id of the tab

Returns integer.

#### Description

Removes a tab or tabs from the .tabs array and refreshes them on screen. The tab object is identified by the .id property. The method returns the number of tabs it removes.
If you have tabs defined in the following way: $('#tabs').w2tabs({ name: 'tabs', active: 'tab1', tabs: [ { id: 'tab1', text: 'Tab 1' }, { id: 'tab2', text: 'Tab 2' }, { id: 'tab3', text: 'Tab 3' }, { id: 'tab4', text: 'Tab 4' } ] }); You can add tabs: w2ui['tabs'].remove('tab2', 'tab3');