remove object in js html code example Example: delete html with javascript document.querySelector('selector').remove();