Removes items from the toolbar.
remove(id1, [id2], ...)

id | string, id of the toolbar item

Returns integer.

#### Description

Removes a toolbar item or items from the .items array and refreshes the toolbar. The toolbar item is identified by the .id property. The method returns the number of items it removes.
If you have toolbar defined in the following way: $('#toolbar').w2toolbar({ name : 'toolbar', items : [ { type: 'check', id: 'item1', text: 'Check', img: 'icon-page', checked: true }, { type: 'radio', id: 'item3', group: '1', text: 'Radio 1', img: 'icon-add' }, { type: 'radio', id: 'item4', group: '1', text: 'Radio 2', img: 'icon-add' } ] }); You can get toolbar item: w2ui['toolbar'].remove('item3', 'item4');