APIsChangelog
Log In

Remove variable

variable.remove()

Delete and remove variable from collection.

Syntax

variable.remove(): Promise<boolean>

Returns

Promise<boolean>

A Promise that resolves to a boolean value

Example

// Get Collection
const collection = await webflow.getDefaultVariableCollection()

// Get All Variables
const variables = await collection.getAllVaraiables

// Remove first variable
const variable = variables[0]
await variable.remove()