Setup a SymLink in Dropbox to a folder on my Mac, how do I remove it?

Discussion in 'macOS' started by MikeTheVike, Sep 7, 2012.

  1. MikeTheVike macrumors regular

    Joined:
    Aug 8, 2009
    #1
    I used the terminal command to add a symlink and it worked and the folder on my hardrive is mirrored in Dropbox. Now i want to remove it, but it isn't working.

    ln -s /mac/folder /dropbox/folder

    I tried to remove it with the following commands, but it always says "rm: /dropbox/folder: is a directory" and nothing happens. What am I doing wrong here?

    rm /mac/folder
    rm /dropbox/folder
    rm /mac/folder/
    rm /dropbox/folder/


    Thansk for any help
     
  2. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #2
    rm /dropbox/folder
    should work, because it is a symlink. In fact I just recreated what you said you did, and I was able to remove the symlink in the dropbox folder.

    THe /mac/folder is presumably an actual folder, so if you want to nix it, you would have to use rmdir, or rm -r if it has any contents.

    Now, if you are doing this on a different machine than where you created the symlink, it is highly likely that when dropbox replicated /Dropbox/folder, it replicated as an actual folder since a symlink back to the original machine would not work.
     

Share This Page