removeNamedItem

fun removeNamedItem(qualifiedName: String): Attr(source)

The removeNamedItem() method of the NamedNodeMap interface removes the Attr corresponding to the given name from the map.

MDN Reference