removeAttributeNS

fun removeAttributeNS(namespace: String?, localName: String)(source)

The removeAttributeNS() method of the If you are working with HTML and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead.

MDN Reference