My brain has two points of view on this:
First and foremost, any leadership involved specifically in the Afghanistan withdrawal should be keelhauled, then fired, and exempted from any mil-industrial complex jobs.
Second, the concept of subjective and politically based "purging general officer leaders" should induce shivers and revulsion from anyone who has studied history.
This will be messy.