# Remove Data Table Value

Grammar — Remove name value from the scope|Global/Local data table
FlagsNative | Action

Removes a value within a data table.

# Arguments

  • bool<preset::DataScope> — Scope
  • string — Name

Returns — void

native void DataTableValueRemove(bool global, string name);

Category: Data Table / Utility

# Examples

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

    // Automatic Variable Declarations
    // Implementation
    DataTableValueRemove(true, (libVCST_gv_pSC_REDIRECTPREFIX + (lp_sourceCharacter)));
}

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:1748

    UnitSetState(lv_heroUnit, c_unitStateOrdersPaused, false);
    UnitIssueOrder(lv_heroUnit, DataTableGetOrder(true, libMHtM_gf_GetOrderDataTableValueString(lv_heroUnit)), c_orderQueueReplace);
    DataTableValueRemove(true, libMHtM_gf_GetOrderDataTableValueString(lv_heroUnit));
    UnitBehaviorRemove(lv_heroUnit, "HauntedMinesMineShaftInvulnerableUnstoppableBehavior", 1);
    UnitSetState(lv_heroUnit, c_unitStateTargetable, true);

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

void libNCST_gf_ClearCharacterRedirect (string lp_sourceCharacter) {
    // Implementation
    DataTableValueRemove(true, (libNCST_gv_nSC_REDIRECTPREFIX + (lp_sourceCharacter)));
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5042

        lv_mutatorcountiter = UserDataGetInt("MutationDifficultyLevels", libCOMU_gf_CT_GetMutationDifficultyLevel(), "MutatorsMin", 1);
        for ( ; ( (autoEE00DB27_ai >= 0 && lv_mutatorcountiter <= autoEE00DB27_ae) || (autoEE00DB27_ai < 0 && lv_mutatorcountiter >= autoEE00DB27_ae) ) ; lv_mutatorcountiter += autoEE00DB27_ai ) {
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5043

        for ( ; ( (autoEE00DB27_ai >= 0 && lv_mutatorcountiter <= autoEE00DB27_ae) || (autoEE00DB27_ai < 0 && lv_mutatorcountiter >= autoEE00DB27_ae) ) ; lv_mutatorcountiter += autoEE00DB27_ai ) {
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5044

            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter));
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5045

            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter));
            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter));
        }
        DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", 0));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5047

            DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter));
        }
        DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", 0));
        DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", 0));
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5048

        }
        DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", 0));
        DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", 0));
    }