As a continuation of this topic Data Recorder Resetting Python Code - #18 by egdivad , I do found that actually no solution is working to reset the Data Recorders inside Clusters! Know somebody a solution for this issue? I still use Rhinoceros v7.
i was able to repeat this in Rhino 8 and 9 as well, with a Data Recorder inside a cluster the cluster keeps adding to its output on every solve, so even when the script clears the recorder the old values still come out of the cluster. We’ve logged it here https://mcneel.myjetbrains.com/youtrack/issue/RH-100593 For now keep the Data Recorder outside the cluster (output the value from the cluster and record it on the main canvas), then your existing reset script works as is.