Any solution on windows to erase old plots progressively?

I think your missing the point I was making, for example say you are running version 1, you post you’re script to the forum in May 2021 (see link below). Now two years later, I copy and paste that script into PA, but we’re now both on version 9, but the script I just pasted was from the version you were running in May 2021.

Unfortunately I no longer have PA installed, I think it was on my Plotter when I had W10 on it, but that’s now running W11

Out of interest perhaps copy the script from Using Windows Power Automate Desktop to move plots paste it into PA as a new script and see what happens.

I tried both yours and Endertown’s, and there was lots of lines with something like unknown command, unknown error, unknown something, can’t remember now. But when I Googled it I found something which suggested it was due to updates since the script was written, of course I may be completely wrong as I didn’t spend much time on it.