same here: `messagesContainer.parentNode.remove()` should work fine