By the way, I am always happy to help people with programming, however for your own benefit, I really suggest you start using google (or just MDN directly for syntax rather than logic questions).
Being able to search for information is a very important ability, even more so for programming.
Being able to search for information is a very important ability, even more so for programming.
HTMLElement.prototype.remove() removes the element from the DOM.
If you want to delete a variable from an object, use the "delete" operator (unless of course you are using a structure that supports delete(), like Map etc.)
delete this.tag;
console.log(this.tag); // => undefined
See more at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete