# Remove Bank

Grammar — Remove bank bank
FlagsNative | Action

Removes the bank from the cache and no longer allows values to be written to it.

# Arguments

  • bank — Bank

Returns — void

native void BankRemove(bank b);

Category: Bank / Utility

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17555

    }

    BankRemove(gv_transitionalBank);
    gv_transitionalBank = null;
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:17555

    }

    BankRemove(gv_transitionalBank);
    gv_transitionalBank = null;
    return true;

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10919


    libCamp_gf_TS_LoadTransitionVars(libCamp_gv_tS_DebugProgressBank, false);
    BankRemove(libCamp_gv_tS_DebugProgressBank);
    libCamp_gv_tS_DebugProgressBank = null;
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12653

    libSwaC_gf_ZS_UpdateTechStates(1);
    libSwaC_gf_ZS_ApplyTech(1);
    BankRemove(libSwaC_gv_zS_StorySimulationOriginalBank);
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:15060

    libSwaC_gf_ZS_UpdateKerriganType();
    libSwaC_gf_ZS_RecalculateKerriganXP();
    BankRemove(libSwaC_gv_zS_DebugProgressBank);
    libSwaC_gv_zS_DebugProgressBank = null;
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:5913


    if ((lib281DEC45_gv_zSS_TransitionBank != null)) {
        BankRemove(lib281DEC45_gv_zSS_TransitionBank);
        lib281DEC45_gv_zSS_TransitionBank = null;
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1355

    libVoiC_gf_PC_LoadTransitionVars(libVoiC_gv_pC_DebugProgressBank, null);
    libVoiC_gf_PC_SetCurrentMap("ZStoryLab");
    BankRemove(libVoiC_gv_pC_DebugProgressBank);
    libVoiC_gv_pC_DebugProgressBank = null;
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:8049

    libVoiC_gf_PC_UpdateTechStates(1);
    libVoiC_gf_PC_ApplyTech(1);
    BankRemove(libVoiC_gv_pS_StorySimulationOriginalBank);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:569


    libVoiC_gf_PC_LoadTransitionVars(libVCST_gv_pS_DebugStoryBank, null);
    BankRemove(libVCST_gv_pS_DebugStoryBank);
    libVCST_gv_pS_DebugStoryBank = null;
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:5047


    if ((libVCST_gv_pS_TransitionBank != null)) {
        BankRemove(libVCST_gv_pS_TransitionBank);
        libVCST_gv_pS_TransitionBank = null;
    }

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:3954

    libComC_gf_CC_ApplyTech(1);
    libComC_gv_cC_StorySimulationMission = null;
    BankRemove(libComC_gv_cC_StorySimulationOriginalBank);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:511


    libComC_gf_CC_TransitionLoadBankVars(libNCST_gv_nS_DebugStoryBank, null);
    BankRemove(libNCST_gv_nS_DebugStoryBank);
    libNCST_gv_nS_DebugStoryBank = null;
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:4408


    if ((libNCST_gv_nS_TransitionBank != null)) {
        BankRemove(libNCST_gv_nS_TransitionBank);
        libNCST_gv_nS_TransitionBank = null;
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:1124

    libComC_gf_CC_TransitionLoadBankVars(libNovC_gv_NC_DebugProgressBank, null);
    libComC_gf_CC_MapSetCurrent("NStory01");
    BankRemove(libNovC_gv_NC_DebugProgressBank);
    libNovC_gv_NC_DebugProgressBank = null;
}