well, my eyes may be weak, but I did not find a way.
If you are talking about deletefullvariation, it searches for particular parameters. But in the optimization I do not know those from the script. I need some variation iterator, or index, or a timestamp... I don't know, for determining which variations to delete between previous and the last data registered as good.