Remove element from DOM var element = document.getElementById("veryCoolID"); if (element != null) { element.parentNode.removeChild(element); }