Hi,
I find myself needing to reset a msg completely inline with a flow. While I could use a function node, it seems a bit of an oversight not to be able to do this with a change node.
The idea would be to have a drop-down called "Reset msg". It would only really make sense to put it as the first entry of course (unless saving some msg content to a flow variable for later use) but still it would be really useful. Especially since you may not always be able to fully predict all of properties on a msg.
An alternate would be to allow wild-cards in the msg property name. so that you could have something like msg.*
. In fact, that would be even more useful, especially if you could do something like msg.xxxx*
to delete a bunch of similarly named properties.
Instead of a wildcard, you could have a regex.
Yet another potential option might be to allow a JSONata expression for the delete option where you return an array of entries.