How to remove dead actors?

The number of dead actors just keep piling up as ray run and complete more jobs. I wonder what’s the best way to remove dead actors?

ray.kill doesn’t work because ray.get_actor doesn’t work on dead actors and I don’t know if there are other ways of making an actor handle.

ray.terminate_actor <actor_id> i believe works although im a bit more concerned on these leaky dead actors that aren’t being garbage collected naturally.

can you log a Github ticket on ray repo with a repro script on how these dead actors on ray run are piling up?

What API is this? I can’t find anything in the documentation related to it: