StateMachine icon

StateMachine

Get, send and update data in Redis

Purge

AI-generated

Summary

Delete the Redis key selected by the Global Statement setting. For each input item, return whether Redis reported a deletion.

Inputs

  • Execution ID (required) — Hidden parameter that defaults to the current n8n execution ID; the Purge branch does not use it.
  • Global Statement — When true, targets the literal Redis key n8n-state-global-*; when false, targets n8n-state-workflow-<workflow ID>-*. Defaults to true.

Output shape

One output item per input item, each with json.state set to a boolean.

The operation calls Redis DEL with the selected key as a literal key; Redis does not expand * as a wildcard. state is true only if that exact key was deleted. Requires the node's Redis credentials.

Links

Discussion