If I understood your message correctly, you want a trainer to dissapear after the battle, correct?
Then you just have to add a "hidesprite 0xTheTrainer'sPersonEventNumber" and give him an empty flag that will act as his PersonID.
Quick example:
#dynamic 0x800000
#org @start
trainerbattle 0x0...