Docs

RunMacro Documentation

Create your first robot, then go further as needed.

Clear step-by-step guides to create, run, and improve robots for repetitive computer work.

Docs Variables Clear Variable
🗑 Variables

Clear variables (one/all) in RunMacro

The Clear Variable command resets variable data in three modes: clear a single variable, clear all Dynamic variables, or clear everything (Global + Dynamic).

Prerequisites#

  • Add Clear Variable to the macro.
  • Prepare the data or target that Clear Variable will use.

Supported modes#

  • RunMacro Runner

What it does#

The Clear Variable command resets variable data in three modes: clear a single variable, clear all Dynamic variables, or clear everything (Global + Dynamic).

Screenshots & video#

RunMacro Clear Variable command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Clear Variable command in RunMacro.

When to use it#

  • Reset temporary variables before a new processing loop.
  • Remove sensitive data (a password) after use.
  • Reset all variable state when needed.

When not to use it#

  • Do not use Clear All while the workflow needs Global/Dynamic state; clear only the required scope.

Configuration steps#

  1. Add a Variables › Clear Variable command.
  2. Choose the mode: Single / All Dynamic / All.
  3. For Single, enter the variable name. Save.

Every option explained#

Mode (Single / All Dynamic / All)#

Clearing scope: one variable, all Dynamic, or everything.

Variable name (for Single)#

The variable to clear in Single mode.

Expected result#

After execution, Clear Variable completes the described action and makes its result available to the next step.

Real example#

Example: reset Dynamic variables each loop#

  1. At the start of each loop, add Clear Variable mode All Dynamic.
  2. Then assign fresh data for that loop.

Limitations and failure cases#

  • State clearing has no automatic recovery; later steps can receive empty values or lose intermediate data.

Tips & common mistakes#

The All mode also clears Global variables — think twice if the workflow still needs them.

Verification details#

  • commands/variables.py
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.