element.remove()

Remove element from the canvas.

Syntax

1element.remove(): Promise<null>

Returns

Promise<null>

A Promise that resolves to null when the Element is removed from the canvas.

Example

1// Get Selected Element
2const el = await webflow.getSelectedElement();
3
4// Remove the selected element
5await el?.remove();

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canDesignPrimaryMainCanvasDesign