# Remove Bank Section

Grammar — Remove section section from bank bank
FlagsNative | Action

Removes a specific Section, and all of its keys, from the chosen Bank.

# Arguments

  • bank — Bank
  • string — Section

Returns — void

native void BankSectionRemove(bank b, string section);

Category: Bank / Utility

# Examples

campaigns/swarmstory.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2modbase.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.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:828

    // Automatic Variable Declarations
    // Implementation
    BankSectionRemove(libWCdr_gv_w3CBank[lp_player], lp_section);
    BankSave(libWCdr_gv_w3CBank[lp_player]);
}