APIsChangelog
Log In

Remove all style properties

style.removeAllProperties()

Remove all style properties from a Style.

Syntax

style.removeAllProperties(): Promise<void>

Returns

Promise<null>

A promise that resolves to null

Example

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

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

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canModifyStyleBlocksAnyAnyCanvasDesign