Their owner chooses.
Remove enough fighters or ground forces from space to fit the available capacity, except during combat when that check waits until combat ends.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.