I'm not sure if this is a glitch, or just an issue caused by slow/unresponsive servers.
I'm in Team Valour, and each time I have lowered a teams prestige to zero resulting in them being evicted from the gym, they are already back in before I have even had a chance to place one of my Pokémon there.
I have done this 3 times at the same gym and it is becoming very frustrating.
Is this an intended mechanic reacting badly to slow servers, or is it a glitch?