removeShortcut - Remove shortcut from project - MATLAB (original) (raw)
Main Content
Remove shortcut from project
Syntax
Description
removeShortcut([proj](#mw%5F8b2668d1-c940-480f-a369-d66a6cd4fb9f),[shortcuts](#bvnaiq2-1-file))
removes the specified shortcuts from the specified project.
Examples
Open the Times Table App project. Use currentProject
to create a project object from the currently loaded project.
openExample("matlab/TimesTableProjectExample") proj = currentProject;
Create a new file.
filepath = fullfile(proj.RootFolder,"newVariables.mat"); save(filepath)
Add this new file to the project.
projectFile = addFile(proj,filepath)
Add a new shortcut to the new file.
shortcut = addShortcut(proj,filepath);
Remove the shortcut.
removeShortcut(proj,shortcut);
Input Arguments
Shortcut to remove, specified as a string array, a cell array of character vectors, or an array of Shortcut
objects.
Version History
Introduced in R2019a
Starting in R2025a, the removeShortcut
function supports remove multiple project shortcuts from the project at the same time.