We have checked with a sample use-case of adding an employee with a bot task.
CASE 1: When NER tagging in ML training is not used.
Using the script node in between the confirmation node and the entity node for emptying the multiple entity values is working as expected.
Hence, when the user says yes for entering a new record or details again, no entity value is retained.
CASE 2: When NER tagging is used and enabled.
When the script node is configured and user has entered multiple entity values in a single utterance, then the script node is able to clear only the first entity value. The second entity value is still retained.
Hence, we suggest you to make two instances of the entity component instead of using the same entity while retrying.
Kindly let us know if you need any further clarification on the above.