“essentially”
The usual procedure is giving them the option to resign, or be fired. Mattis chose wisely.