get an element and remove it from dom javascript 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);