How to remove procedures from array

Hello! I am working on a project where I need to Get the flight plan, but I want to remove the procedure group that holds the child elements, but no matter what I do, I only manage to remove one, and not more than that.