removeElement

The removeElement() method of the Sanitizer interface sets the specified element be removed from the output when the sanitizer is used.

MDN Reference