The remove() method of the DOMTokenList interface removes the specified tokens from the list.
remove()
MDN Reference