any element delete from document code example
Example 1: javascript remove dom element
var elem = document.querySelector('#some-element');
elem.parentNode.removeChild(elem);
Example 2: remove div javascript
var div = document.getElementById('div-01');
div.remove();