# Delete Campaign Save
Grammar — Deletes the campaign save for players
Flags —Native
|Action
|Restricted
Will delete the save file specified by the SaveName field in Campaign Data in GameUI Data for the current campaign
# Arguments
playergroup
— Players
Returns — void
native void CampaignProgressDeleteCampaignSave(
playergroup players,
);
# Related
Category: Story / Campaign Progress
- Set Campaign Progress Text —
void
— CampaignProgressSetText - Set Campaign Progress Image —
void
— CampaignProgressSetImageFilePath - Set Campaign Progress Tutorial Finished —
void
— CampaignProgressSetTutorialFinished - Set Campaign Progress Campaign Finished —
void
— CampaignProgressSetCampaignFinished - Delete Campaign Save —
void
— CampaignProgressDeleteCampaignSave - Enable Campaign Saves —
void
— CampaignProgressEnableCampaignSaves - Enable Campaign Completed Saves —
void
— CampaignProgressEnableCampaignCompletedSaves
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14186
if ((AchievementsDisabled(1) == false) && (libSwaC_gf_CurrentMap() == "ZKorhal3") && (libSwaC_gv_zS_InCompletedCampaign == false)) {
CampaignProgressDeleteCampaignSave(PlayerGroupAll());
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1479
if ((AchievementsDisabled(1) == false)) {
CampaignProgressDeleteCampaignSave(PlayerGroupAll());
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1503
if ((libVoiC_gv_pCX_IsSimulation == false)) {
GameSetNextMap("");
CampaignProgressDeleteCampaignSave(PlayerGroupAll());
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2305
}
CampaignProgressDeleteCampaignSave(PlayerGroupAll());
GameOver(1, c_gameOverVictory, false, false);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7006
if ((AchievementsDisabled(1) == false) && (lp_mission == "VoidPrologue03") && (libA3DDD02B_gv_pP_InCompletedCampaign == false)) {
CampaignProgressDeleteCampaignSave(PlayerGroupAll());
}