# Remove Bank Section
Grammar — Remove section section from bank bank
Flags —Native
|Action
Removes a specific Section, and all of its keys, from the chosen Bank.
# Arguments
bank
— Bankstring
— Section
Returns — void
native void BankSectionRemove(bank b, string section);
# Related
Category: Bank / Utility
- Remove Bank Backup —
void
— BankBackupRemove - Get Bank Backup Id —
int
— BankBackupGetId - Get Bank Backup Latest Id —
int
— BankBackupGetLatestId - Restore Bank Backup —
void
— BankRestore - Backup Bank —
void
— BankBackup - Bank Exists —
bool
— BankExists - Bank Size As Text —
text
— BankSizeAsText - Bank Name —
string
— BankName - Bank Key Exists —
bool
— BankKeyExists - Bank Key Size As Text —
text
— BankKeySizeAsText - Bank Key Name —
string
— BankKeyName - Bank Key Count —
int
— BankKeyCount - Bank Option —
bool
— BankOptionGet - Bank Player —
int
— BankPlayer - Bank Section Exists —
bool
— BankSectionExists - Bank Section Size As Text —
text
— BankSectionSizeAsText - Bank Section Name —
string
— BankSectionName - Bank Section Count —
int
— BankSectionCount - Bank Value Is Type —
bool
— BankValueIsType - Delete Saved Campaign Banks —
void
— BankDeleteCampaignBanks - Evaluate Bank Condition —
bool
— BankConditionEvaluate - Set Bank Option —
void
— BankOptionSet - Create Bank Section —
void
— BankSectionCreate - Remove Bank —
void
— BankRemove - Remove Bank Key —
void
— BankKeyRemove - Remove Bank Section —
void
— BankSectionRemove - Verify Bank —
bool
— BankVerify
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13401
lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto1BD8DB7C_ai);
lv_section = libSwaC_gf_ZS_ArmyCategoryBankSection(lv_indexCategory);
BankSectionRemove(libSwaC_gv_zS_ArmyTechBank, lv_section);
auto77EF997B_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray", 1);
auto77EF997B_ai = 1;
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13407
lv_indexUnit = CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray["+IntToString(auto77EF997B_ai-1)+"]", 1);
lv_section = libSwaC_gf_ZS_ArmyUnitBankSection(lv_indexUnit);
BankSectionRemove(libSwaC_gv_zS_ArmyTechBank, lv_section);
auto77EF997B_ai = auto77EF997B_ai + 1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7306
lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto48774C10_ai);
lv_section = libVoiC_gf_PC_ArmyCategoryBankSection(lv_indexCategory);
BankSectionRemove(libVoiC_gv_pC_ArmyTechBank, lv_section);
auto8D929E0C_ae = CatalogFieldValueCount(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray", 1);
auto8D929E0C_ai = 1;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7312
lv_indexUnit = CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray["+IntToString(auto8D929E0C_ai-1)+"]", 1);
lv_section = libVoiC_gf_PC_ArmyUnitBankSection(lv_indexUnit);
BankSectionRemove(libVoiC_gv_pC_ArmyTechBank, lv_section);
auto8D929E0C_ai = auto8D929E0C_ai + 1;
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:819
BankKeyRemove(libWCdr_gv_w3CBank[lp_player], lp_section, lp_key);
if ((BankKeyCount(libWCdr_gv_w3CBank[lp_player], lp_section) == 0)) {
BankSectionRemove(libWCdr_gv_w3CBank[lp_player], lp_section);
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:828
// Automatic Variable Declarations
// Implementation
BankSectionRemove(libWCdr_gv_w3CBank[lp_player], lp_section);
BankSave(libWCdr_gv_w3CBank[lp_player]);
}