The clear() method of the StylePropertyMap interface removes all declarations in the StylePropertyMap.
clear()
MDN Reference