Contenido principal

mpmRemoveRepository

R2026b

Remove repository from repository list

Since R2024b

    Description

    mpmRemoveRepository(repoLocation) removes the specified repository from the MATLAB® repository list.

    example

    mpmRemoveRepository(repoObj) removes the specified matlab.mpm.Repository object from the list of known repositories.

    Examples

    collapse all

    Remove the repository located at C:\MyCode\MyPackageRepository from the repository list.

    mpmRemoveRepository("C:\MyCode\MyPackageRepository")

    The MATLAB Central File Exchange is on the list of known repositories by default. File Exchange can be removed from the list of known repositories using the URL returned by the matlab.mpm.FileExchange function.

    Display the list of currently installed repositories.

    mpmListRepositories
                   Name                                   Location                     
        __________________________    _________________________________________________
    
        "MyRepo"                      "C:\MyCode\MyPackageRepository"                  
        "File Exchange Repository"    "https://addons-integ1.mathworks.com/registry/v1"

    Remove File Exchange using matlab.mpm.FileExchange.

    mpmRemoveRepository(matlab.mpm.FileExchange)

    Display the list of currently installed repositories and confirm File Exchange has been removed.

    mpmListRepositories
                   Name                                   Location                     
        __________________________    _________________________________________________
    
        "MyRepo"                      "C:\MyCode\MyPackageRepository"

    Input Arguments

    collapse all

    Repository location or name, specified as a string array, character vector, or cell array of character vectors where each element contains the location or name of the repository to be removed from the MATLAB repository list.

    Repository object, specified as a matlab.mpm.Repository array.

    Version History

    Introduced in R2024b

    expand all