How to change study id with AFL?

I have multiple studies on a chart including horizontal lines, trend lines, rectangles etc. I need to change their id programmatically. Can this be done?

If this is not possible, I want to delete the particular study and then draw a similar study with a unique id (essentially accomplishing the above in two steps).

Any help appreciated.