Remove all style properties

style.removeAllProperties()

Remove all style properties from a Style.

Syntax

1style.removeAllProperties(): Promise<void>

Returns

Promise<null>

A promise that resolves to null

Example

1// Retrieve the style by name
2const retrievedStyle = await webflow.getStyleByName(styleName);
3
4// Clear Style Properties
5await retrievedStyle?.removeAllProperties()

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canModifyStyleBlocksAnyAnyCanvasDesign