removeNamedItemNS

fun removeNamedItemNS(namespace: String?, localName: String): Attr(source)

The removeNamedItemNS() method of the NamedNodeMap interface removes the Attr corresponding to the given namespace and local name from the map.

MDN Reference