Make Actors leave party when a battle ends in vx ace

So in my game there is a class who's main skills involve adding extra actors to the party to help in battle.  Is there any way to get said actors to exit the party when the battle ends, so that they're still there in the battle screen, but if you were to open the menu once the battle ends and you are back on the map, they would not be there?  Also a way to make them leave the party when their HP drops to 0?  Thanks inn advance.
Question: Are you doing on-map enemies, or random encounters?
Make a common event parallel process conditioned to a switch "after battle" that only contains two commands: remove actor and control switch "after battle" off.


Then, at the place where you add your extra battler, also add a control switch "after battle" ON.


Parallel processes don't work on battlescreen, so as soon as the party returns from battlescreen the actor will be removed.
thank you. that worked

Original thread: https://forums.rpgmakerweb.com/threads/make-actors-leave-party-when-a-battle-ends-in-vx-ace.40402/