RMDIR and DELETE cannot be used to delete a symbolic link within MATLAB 7.0 (R14). For a symbolic link, 'root', to a directory '/home/username/test', the following code:
delete root
produces the following warning:
Warning: 'root' is a directory. Use rmdir to delete directories.
and
rmdir root
produces the following:
Warning: Directory /home/username/test could not be removed. If it is not empty, use rmdir with 's' option. ??? Error using ==> rmdir No directories were removed.
Best Answer