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.
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#

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#
- Add a Variables › Clear Variable command.
- Choose the mode: Single / All Dynamic / All.
- For Single, enter the variable name. Save.
Every option explained#
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#
- At the start of each loop, add Clear Variable mode All Dynamic.
- 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
