Removes nodes from the sidebar.
remove(id1, id2, ...)

id | string, id of the sidebar node

Returns integer.

#### Description

Removes a sidebar node or nodes from the .nodes array and refreshes the sidebar. The sidebar node is identified by the .id property. it will search the entire sidebar including all its nested nodes. The method returns the number of nodes it removes.
If you have sidebar defined in the following way: $('#sidebar').w2sidebar({ name : 'sidebar', nodes: [ { id: 'id-1', text: 'Level 1' }, { id: 'id-2', text: 'Level 2' }, { id: 'id-3', text: 'Level 3' } ] }); You can: w2ui['sidebar'].remove('id-1', 'id-3');