`timeline.firstChild.remove()` or skip the loop and `timeline.innerHTML = ''`