how to delete element from dom js code example
Example: javascript remove dom element
var elem = document.querySelector('#some-element');
elem.parentNode.removeChild(elem);
var elem = document.querySelector('#some-element');
elem.parentNode.removeChild(elem);