I'm not sure what you mean by "clean up". There is no way to permanently remove characters (dead or alive) from a game, unless they were created as
temporary characters in the first place (in which case they will be removed automatically when dying and saving/reloading the game). At most, you can set them them
off-stage.
To iterate over all characters in the current level, you can use
CharacterLaunchIterator.