MacOS – remove user’s home directory folders

finderfoldersmacossymlink

I have the following scenario:

All of my files, documents etc. are saved on Copy.com.

I have installed copy on my MacBooc Air all my files went to the following directory:

/Users/username/Copy
/Users/username/Copy/Documents
/Users/username/Copy/Movies
/Users/username/Copy/Pictures
/Users/username/Copy/Music
/Users/username/Copy/Workspace

On my Mac's home folder, I want to replace the following folders with symlinks or aliases to the Copy ones:

/Users/username
/Users/username/Documents (alias to /Users/username/Copy/Documents)
/Users/username/Movies (alias to ...)
/Users/username/Pictures (alias to ...)
/Users/username/Music (alias to ...)
/Users/username/Workspace (alias to ...)

I have tried to delete a folder under /Users/username and Mac prompts:

“Documents” can’t be modified or deleted because it’s required by OS X.

I have done this scenario on Ubuntu, that's why I want it on MacBook Air, too.

Best Answer

Finder will prevent you from deleting the default directories, but Terminal won't. You can use rm -rf /path/to/directory to delete the folder then create the symlink normally.