javascript remove javascript reference from html code example Example: delete html with javascript document.querySelector('selector').remove();