Skip to main content

Delete Variable

Controlled node

Overview​

Remove a variable or a nested value from the workflow.

Delete Variable removes a named value from the current workflow's local scope. Use it to discard temporary state without clearing unrelated variables.

Inputs​

InputTypeDescription
runEventDeletes the selected value.
nameTextThe variable name or nested path to remove.
DynamicDataAdditional sockets created by placeholders such as item_{{id}}.

Outputs​

OutputTypeDescription
doneEventFires after the deletion attempt, including when the variable was already absent.

What gets removed​

  • customer removes the entire variable.
  • customer.temporaryNote removes that property without deleting the rest of the object.
  • items.0 removes the first item from a stored list; later indexes shift down.

Use a valid name or path. An absent variable or property is harmless; you do not need to check that it exists before deleting it.

Scope​

In the top-level workflow, local and shared variables use the same scope, so this node can remove those values.

Inside a nested workflow, it deletes only that workflow's local value. It does not fall back to deleting a top-level shared variable. If both scopes contain the same name, removing the local value can make the shared value visible to Variable.

Example​

After using temporaryResult, connect the final action's completion event to run and set name to temporaryResult.

This removes the workflow variable, not any database row or library file referenced by its value.