var arr2 = Array.prototype.slice.call( arr, 0 ) for( var i = 0; i < arr2.length; ++i ) arr2[i].parentNode.removeChild( arr2[i] );