.remove() js code example
Example 1: remove javascript
var elem = document.getElementById("myDiv");
elem.parentNode.removeChild(elem);
Example 2: .remove javascript
<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>