# rmpath

Remove folders from search path

## Description

example

rmpath(folderName) removes the specified folder from the search path.

If folderName is a set of multiple folders separated by path separators, then each of the specified folders will be removed.

## Examples

collapse all

Remove /usr/local/matlab/mytools from the search path.

rmpath('/usr/local/matlab/mytools')

## Input Arguments

collapse all

Name of folder to remove from the search path, specified as a character vector or string scalar. Use the full path name for folderName.

Example: 'c:\matlab\work'

Example: '/home/user/matlab'

MATLAB® resolves all path names containing '.', '..', and symbolic links to their target location before removing them from the path. For example, if you specify c:\matlab\..\work, MATLAB removes the folder c:\work from the path.

Data Types: char | string

## Version History

Introduced before R2006a