remove and element from the dom code example Example: delete html with javascript document.querySelector('selector').remove();