Node reference
Delete State
Remove saved workflow memory
Delete State removes a saved key from this workflow on the current runtime.
Try it step by step
- Initialize lastBalance, then connect Delete State with Key set to lastBalance.
- Run and inspect deleted. Run initialization again to recreate the key with its initial value.
What to expect
Deleting an existing key reports deleted: true. Deleting an absent key reports false. Later references to the missing key return undefined.
Things to check
- Use deletion before initialization when a new run must start with a fresh temporary batch.
- Deleting State does not undo external work such as sending a transaction.
Keep learning
Parameters
| Setting | Default | What it does |
|---|---|---|
| Key | (empty) | A name private to this workflow. Expressions can choose it dynamically. |
| Node name | (empty) | Custom display name. References and connections keep their existing identifiers. |
Node name: Double-brace expressions are not resolved in this field.
Inputs
| Port | Value | Description |
|---|---|---|
in | any | Trigger that removes the configured workflow State key. |
Outputs
| Port | Value | Description |
|---|---|---|
out | object | The key and whether it existed before deletion. |
out fields
| Field | Type | Description |
|---|---|---|
key | string | Workflow-scoped State key. |
deleted | boolean | Whether a stored value was removed. |