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