variable.remove()

Delete and remove variable from collection.

Syntax

1variable.remove(): Promise<boolean>

Returns

Promise<boolean>

A Promise that resolves to a boolean value

Example

1// Get Collection
2const collection = await webflow.getDefaultVariableCollection()
3
4// Get All Variables
5const variables = await collection.getAllVaraiables
6
7// Remove first variable
8const variable = variables[0]
9await variable.remove()

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canModifyVariablesAnyMainCanvasDesign