I don't think it matters which eval script it is in, try one and if that doesn't work try another.
delete is a fairly common function which you should be able to find an example of. Here is one such
Code:
perform hero.child[xFly].delete[Value.?]
the first [] is the pick, and the second [] is the tag to delete