remove

fun remove(vararg tokens: T)(source)

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

MDN Reference