blokboard/ Open app

Node reference

Delete State

Remove saved workflow memory

CoreData

Delete State removes one saved key from this workflow on the current runtime. Use it to clear a checkpoint or reset a stored preference.

Try it step by step#

  1. Save greeting with Set State, then connect Delete State with Key set to greeting.
  2. Connect Get State using the same key.
  3. Run and inspect both results. Run Delete State again without another write to see what happens when the key is already absent.

What to expect#

The first deletion reports {"key":"greeting","deleted":true}. A later deletion reports deleted: false. Get State reports found: false after either.

Things to check#

  • Deletion affects this one key, not every saved value.
  • Use the same spelling and expression result in the read, write, and delete steps. A different key is a different stored value.

Keep learning#

Parameters#

SettingDefaultWhat it does
Key(empty)A name private to this workflow. Expressions can choose it dynamically.

Inputs#

PortValueDescription
inanyTrigger that removes the configured workflow State key.

Outputs#

PortValueDescription
outobjectThe key and whether it existed before deletion.

out fields#

FieldTypeDescription
keystringWorkflow-scoped State key.
deletedbooleanWhether a stored value was removed.