Sounds like you are getting closer...

Maybe try putting a while(my.entity1 != null){remove(me)}

Just another idea to try...might work, might not.

Dont know why it would only work 90% of the time though, like I said, I haven't used the command yet.

Brandon