I'd like to remove all game modes via the Admin API.
The only relevant operation I see is ModifyMatchmakerGameModes but I don't see how to use this to explicitly remove game modes. It only seems to overwrite them.
Usage/problem context:
My build script uploads a new server build, then adds the server build, then modifies the matchmaker game mode to point to the new build.
I want it to look something like...
- lobby - aelobby0.1
- classic - aeserver0.20
- tutorial - aeserver0.20
But it ends up looking like...
- classic - aelobby0.1
- tutorial - aelobby0.1
- lobby - aelobby0.1
- classic - aeserver0.20
- tutorial - aeserver0.20
Somewhere during the build process, I think when the script removes the old server build, the server game modes try to fall back to the only remaining build (which is the lobby).