Overlay.removeRois a text overlay?


Would there be a way to remove a specific overlay that was created with Overlay.drawString? Essentially I am adding my ROIs from the roiManager to Overlay with additional text overlay as annotation, and I can remove my contours by using the Overlay.removeRois(name). However, the only way I could remove the text overlay is to store the index or deduce them from rough positions (which does not work all the time). If I could assign a name like an ROI that would be great, and wondering whether it is possible to do so.

Thank you very much for any suggestions & tips!