Complex sentence: It precisely switched one fleet for another and allowed the destruction of the homeworld in a way meant to convince the Gbaba that humankind is extinct.
Split into simpler sentences: It precisely switched one fleet for another before the destruction of Earth. This was meant to convince the Gbaba that humankind is extinct.