>In Pokémon Omega Ruby and Alpha Sapphire, if the player did not catch Deoxys at the edge of space during the Delta Episode, after entering the Hall of Fame Deoxys can be encountered at the summit of the Sky Pillar, along with its triangular shard.
There you have it, if you KO/get KOed by Deoxys in space, after you beat the Elite Four once again Doexys will respawn at the top of the Sky Pillar.
EDIT:
Rayquaza rams into the Meteorite, causing it to be destroyed. If Deoxys KOs all of your Pokemon, nothing happens because Rayquaza has already destroyed the Metorite, all that's left if it is the triangle.
Sorry for misunderstanding your question...
Source