Clear Variables
AI-generatedSummary
Deletes all variables within a specified namespace, persisting the effect across workflow executions.
Inputs
- Scope (required) — The storage scope: Local (this execution), Workflow Global, Node Local, Custom Namespace, Cross-Workflow (Shared), or Cross-Workflow (Data Tables).
- Namespace — The namespace to clear. Required for Workflow Global, Node Local, Custom Namespace, and Cross-Workflow scopes. Defaults to 'default'.
- Custom Namespace Name — The custom namespace expression when Scope is set to 'Custom Namespace'.
- Confirmation (required) — Must be typed as 'CLEAR' (uppercase) to confirm the deletion.
- Output Mode — How the output item is constructed: Preserve Input + Add Result (default), Result Only, or Add / Update Field.
- Result Field Name — The field name to hold the result object on the output item (for 'Preserve Input + Add Result' or 'Result Only').
Output shape
An object containing the operation result with keys: operation, scope, namespace, count, and cleared.
Returns the count of cleared variables. The 'count' is zero if the namespace was empty. The operation returns a success indicator even when clearing an empty namespace.
Examples
Example 1: Clear all variables in a Workflow Global namespace named 'cooldowns'.
Scope: Workflow Global, Namespace: cooldowns, Confirmation: CLEAR
Example 2: Delete all variables in a Node Local namespace for the current execution.
Scope: Node Local, Namespace: default, Confirmation: CLEAR
Example 3: Clear a Data Tables namespace after receiving user confirmation.
Scope: Cross-Workflow (Data Tables), Namespace: my_data, Confirmation: CLEAR