Add them to an array as or a map (if you have IDs) as you create them - this way they all sit in a container that can be trimmed as needed. Every now & then loop through the array, dereference → Collect Garbage.
Yeah well, as I said, there can be an unknown number of those markers
Pooling is another solution. Although there’d be some upfront work needed first.