How do i destroy an actor based off a string?

I need a way to destroy an actor based off of a string, it needs to be efficient. What i mean by that is i need for the for each loop to just destroy the actor that is within the stored variable. Is there any way to do this?


took me a little but i figured this out