APIsChangelog
Log In

Remove all style properties

style.removeAllProperties()

Remove all style properties from a Style.

Syntax

style.removeAllProperties(): Promise<void>

Returns

Promise<void>

A promise that resolves to undefined

Example

// Retrieve the style by name
const retrievedStyle = await webflow.getStyleByName(styleName);

// Clear Style Properties
await retrievedStyle?.removeAllProperties()