How to clear context?

Not out of the box. You would need to get the keys and iterate them, setting each one to undefined

const keys = flow.keys()

for (let index = 0; index < keys.length; index++) {
    const key = keys[index];
    flow.set(key, undefined)
}

chrome_vAlMAdN2mR


BETTER MANAGEMENT of context:

Store all your context variables in a single object, then you can just delete that 1 single object.

4 Likes