var elem = document.getElementById("myDiv");
elem.parentNode.removeChild(elem);
function arrayRemove(arr, value)
{
return arr.filter(function(ele){
return ele != value;
});
}
//var result = arrayRemove(array, 6);// result = [1, 2, 3, 4, 5, 7, 8, 9, 0]
<div id="div-01">Here is div-01</div>
<div id="div-02">Here is div-02</div>
<div id="div-03">Here is div-03</div>