JSFiddle - React, Tailwind, and code Playground
HTML
<div id="remove">
<img src="https://2ch.hk/pr/src/434622/14233545659430.png" alt="">
<img src="https://2ch.hk/pr/src/434622/14233545659601.png" alt="">
<img src="https://2ch.hk/pr/src/434622/14233545659672.jpg" alt="">
</div>
JavaScript
var root = document.getElementById("remove");
var children = root.children;
var superRoot = root.parentNode;
var len = children.length;
for(var i=0; i<len; i++)
{
superRoot.appendChild(children[i]);
}
superRoot.removeChild(root);