delete fetch specific element from button javascript code example Example: delete html with javascript document.querySelector('selector').remove();