For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • Variables
    • Variable Modes
        • Get all variable modes
        • Get variable mode by name
        • Get variable mode by ID
        • Create variable mode
        • Remove variable mode
  • Assets
  • Pages & Folders
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • mode.remove()
Variables & CollectionsVariable ModesCreating & Retrieving Variable Modes

Remove variable mode

Was this page helpful?
Previous

Get variable mode name

Next
Built with

mode.remove()

Remove a variable mode from a collection

Syntax

1mode.remove(): Promise<boolean>

Returns

Promise<boolean>

A Promise that resolves to boolean.

Example

1// Get Collection
2const collection = await webflow.getDefaultVariableCollection()
3
4// Get Variable Mode
5const variableMode = await collection?.getVariableModeByName(modeName)
6
7// Remove Variable Mode
8variableMode?.remove()

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canModifyVariablesAnyMainCanvasDesign