js clear child nodes
xxxxxxxxxx
// note that this will also remove any text
myNode.innerHTML = '';
xxxxxxxxxx
parent.querySelectorAll("*").forEach(child -> child.remove());
//Change the value of * if there is a specific class you want to remove
//otherwise leave the * for removing all child elements.