removeAttributeNode

The removeAttributeNode() method of the Element interface removes the specified Attr node from the element.

MDN Reference