rmpath does not remove folders on path

>> rmpath('/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/');
Warning: "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1" not found in path.
> In rmpath>doRemoveFromPath (line 102)
In rmpath (line 59)
>> rmpath('/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1');
Warning: "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1" not found in path.
> In rmpath>doRemoveFromPath (line 102)
In rmpath (line 59)
>> doc rmpath
>> path
MATLABPATH %%% matlabCP1 manifestly remains on path
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/turbulence/CP1
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/io
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/models
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/models/skyrmions
/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1/models/velocity

 Respuesta aceptada

Matt J
Matt J el 3 de Nov. de 2025
Editada: Matt J el 3 de Nov. de 2025
No, as you have been warned "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1" is not on your Matlab path. Several of its subfolders are on your path, but that's not the same.
Perhaps you intended to do,
rmpath ( genpath( "/Users/siggia/Dropbox @RU Dropbox/Eric Siggia/Desktop/claude/matlabCP1") )

2 comentarios

Eric
Eric el 6 de Nov. de 2025
This solves problem, first generate parent directory and then rmpath will remove it AND all subdirectories
Matt J
Matt J el 6 de Nov. de 2025
I'm glad, but please Accept-click the answer to indicate that it worked.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Search Path en Centro de ayuda y File Exchange.

Productos

Versión

R2023b

Etiquetas

Preguntada:

el 3 de Nov. de 2025

Comentada:

el 6 de Nov. de 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by