>Starting from Platinum, if the player defeats the roaming Pokémon, it will re-spawn once the player beats the Elite Four again. However, the trigger that caused them to start roaming must be reactivated. For example, for Mesprit to roam again, the player must visit Verity Cavern again.
Before Platinum, roaming legendaries do not respawn.
Bulbapedia