Errors When Updating Folders on Search Path
You can encounter errors or unexpected behavior when you try to delete, rename, or move folders that:
Are on the search path
Contain subfolders that are on the search path
The behavior varies by platform because it depends on the behavior of similar features in the operating system.
If your task fails and the error message indicates it is because the folder is on the search path, then do the following:
Remove the folder from the search path.
Delete, rename, or move the folder.
Add the folder to the search path.