Contenuto principale

unregister

R2026b

Unregister configuration

Since R2026b

    Description

    metric.config.unregister(configurationFile) unregisters the configuration file specified by configurationFile from the resources folder in the current working folder. Unregister a configuration to remove its custom thresholds from the testing dashboards.

    example

    metric.config.unregister(configurationFile,location) also specifies the resources folder location from which the configuration is unregistered.

    example

    Examples

    collapse all

    Unregister a custom threshold configuration so that the custom threshold set no longer appears in the testing dashboards.

    Unregister the configuration file from the current folder.

    proj = currentProject;
    p = proj.RootFolder;
    metric.config.unregister(fullfile(p,"MyConfig.json"),p)

    Verify that the custom threshold set is no longer available.

    sets = getThresholdSets(metric.Engine);
    sets.Id
    ans =
    
        "Testing"
    
    ans =
    
        "ReqBasedTesting"

    Input Arguments

    collapse all

    Path to the configuration JSON file to unregister, specified as a string scalar or character vector for an existing file path. The file must be located in the location folder.

    Data Types: string | char

    Path to the resources folder from which you want to unregister the configuration, specified as a string scalar or character vector for an existing folder path. The configuration file must be in that folder. The default value is the current working folder.

    Data Types: string | char

    Version History

    Introduced in R2026b