Main Content

removeReference

Remove project reference

Description

example

removeReference(proj,folder) removes the reference to the project specified by folder. The reference is removed from the specified project, proj.

Examples

collapse all

Open the Times Table App project. Use currentProject to create a project object from the currently loaded project.

matlab.project.example.timesTable
proj = currentProject;

Create a new blank project.

projectToReference = matlab.project.createProject();

Reload the first project and add a reference to the new blank project.

reload(proj);
addReference(proj,projectToReference,"absolute");

Remove the reference to the blank project.

removeReference(proj,projectToReference);

Input Arguments

collapse all

Project, specified as a matlab.project.Project object. Use currentProject to create a project object from the currently loaded project.

Path of the folder containing the referenced project to remove, specified as a character vector or string scalar. Specify the path relative to the project root folder. The folder must be within the root folder.

Introduced in R2019a