# Destroy All Planets
Grammar — Destroy all planets for playerGroup
Flags —Native
|Action
Removes all planets from the planet panel for the specified players.
# Arguments
playergroup
— PlayerGroup
Returns — void
native void PlanetDestroyAll(playergroup inPlayerGroup);
# Related
Category: Story / Planet Panel / Planets
- Destroy All Planets —
void
— PlanetDestroyAll - Destroy Planet —
void
— PlanetDestroy - Create Planet —
int
<planet> — PlanetCreate - Last Created Planet —
int
<planet> — PlanetLastCreated
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10290
// Implementation
PlanetClearSelected(PlayerGroupAll());
PlanetDestroyAll(PlayerGroupAll());
gv_planetPanel_Created = false;
gv_planetPanel_PlanetCount = 0;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:10290
// Implementation
PlanetClearSelected(PlayerGroupAll());
PlanetDestroyAll(PlayerGroupAll());
gv_planetPanel_Created = false;
gv_planetPanel_PlanetCount = 0;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1741
ConversationDataStop();
TransmissionClearAll();
PlanetDestroyAll(PlayerGroupAll());
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePlanetPanel, false);
}