let imgtag = document.querySelector('img'); imgtag.parentElement.removeChild(imgtag);
img태그를 돔에서 추출한뒤 parentElement로 한단계 올라가서 그의 자식을 삭제하면됨