I am using reteset piechart plugin.
In the object are generated 3 types of charts but after I generated the chart for the first time the old chart should be cleared because the new data are merged with the old once. I know that this plugin has this command PieChart.RemoveItem
but the issue is that the ID's that I have entered are dynamic, so I need something like

Could someone helps me?!