document delete element

JavaScript
//removing element by ID
var element = document.getElementById("myElementID");
    element.parentNode.removeChild(element);
Source

Also in JavaScript: