This is the usual phrase for depriving an officer of his command, especially when it is intended to disgrace him.