javascript delete all childrne code example Example: delete all childs in node while (myNode.firstChild) { myNode.removeChild(myNode.lastChild); }