How I delete a session variable after first use

Hello,

I’m using converse API, and I have a node with a session variable, this variable is used for reply with shortcut from database for example:

type: session
name: shortcut
value: /welcome

But I want this variable was destroyed after the first use, how I can delete this variable after use the first time.

Someone has a better idea, because it would be ugly for the user to reset or put the same variable empty after using it in next node.

Thanks in advance

Chris

Variables are bind to workflows, try to extract nodes to separate workflow.

Hey @christiang.pmp ,

I assume you are using v12; as far as I remember, you can set it to null or undefined or something like that.

You can also ask in the v12 forum; they are more specialized in v12 matters.