Complete uninstall of SeaDrive from macos

Hi.
I was lent a mac while mine was being repaired. SeaDrive helped a lot ! I must give the mac back. how do I completely remove SeaDrive ?

Installed version is 2.0.18 on macos big sur 11.6.2 intel CPU.

sudo find /Library -iname '*seadr*' found these files :

/Library/PrivilegedHelperTools/com.seafile.seadrive.helper
/Library/Logs/seadrive-helper.log
/Library/LaunchDaemons/com.seafile.seadrive.helper.plist

But I see that there is some macfuse installation too. How do I remove it completely?

What are the files that should be removed in the home directory ?

Thanks

Did you delete the User login you were using? That home directory will have a .seadrive folder you’ll want to remove.

How about?

sudo find ~/Library -iname ‘seadr

thanks. The account is still there (and unfortunately will stay). I did not notice the ~/.seadrive folder. so ok,

rm -rf ~/.seadrive

How about?

 sudo find ~/Library -iname ‘seadr’

Yep, good idea.

Library/Application Support/SeaDrive
Library/Application Support/SeaDrive/.....some files here...
Library/Application Support/CrashReporter/SeaDrive FinderSync_D1A80E37-8DB8-59E5-824D-65F81D1CF753.plist
Library/Preferences/com.seafile.seadrive.plist
Library/Application Scripts/com.seafile.seadrive.findersync
Library/QuickLook/SeaDriveQL.qlgenerator
Library/QuickLook/SeaDriveQL.qlgenerator/.... some files here....
Library/Logs/DiagnosticReports/SeaDrive FinderSync_2022-01-21-192610_11ums91.crash
Library/Group Containers/com.seafile.seadrive.findersync
Library/Containers/com.seafile.seadrive.findersync
Library/Containers/com.seafile.seadrive.findersync/.... some files here...

So I guess this should work :

rm -rf \
~/.seadrive \
~/'Library/Application Support/SeaDrive' \
~/'Library/Application Support/CrashReporter/SeaDrive'* \
~/'Library/Preferences/com.seafile.seadrive.plist' \
~/'Library/Application Scripts/com.seafile.seadrive.findersync' \
~/'Library/QuickLook/SeaDriveQL.qlgenerator' \
~/'Library/Logs/DiagnosticReports/SeaDrive'* \
~/'Library/Group Containers/com.seafile.seadrive.findersync' \
~/'Library/Containers/com.seafile.seadrive.findersync'

Now there is just this macfuse thing…

I found a macfuse uninstaller deep inside the SeaDrive.app. In the end, here is what I did :

  1. disconnect all the connected seadrives
  2. quit the SeaDrive app
  3. unload the seadrive daemon. in the terminal app, run this :
    sudo launchctl unload  /Library/LaunchDaemons/com.seafile.seadrive.helper.plist
    
  4. remove the /Library component.
    sudo rm /Library/PrivilegedHelperTools/com.seafile.seadrive.helper
    sudo rm /Library/Logs/seadrive-helper.log
    sudo rm /Library/LaunchDaemons/com.seafile.seadrive.helper.plist
    
  5. remove the macfuse component. Launch the uninstaller from terminal.
    open /Applications/SeaDrive.app/Contents/Resources/macfuse.fs/Contents/Resources/uninstall_macfuse.app
    
  6. There are still a few macfuse drivers files hanging around. remove them with
    sudo kextcache -invalidate /
    sudo kextcache --clear-staging
    
  7. remove files in home directory
    rm -rf \
    ~/.seadrive \
    ~/'Library/Application Support/SeaDrive' \
    ~/'Library/Application Support/CrashReporter/SeaDrive'* \
    ~/'Library/Preferences/com.seafile.seadrive.plist' \
    ~/'Library/Application Scripts/com.seafile.seadrive.findersync' \
    ~/'Library/QuickLook/SeaDriveQL.qlgenerator' \
    ~/'Library/Logs/DiagnosticReports/SeaDrive'* \
    ~/'Library/Group Containers/com.seafile.seadrive.findersync' \
    ~/'Library/Containers/com.seafile.seadrive.findersync'
    

It did not seem necessary to reboot. I did it though, and there was no problem.

Don’t know if I missed something, though.

EDIT :
As noted by @mercury, remove the preferences.

defaults delete ~/Library/Preferences/com.seafile.Seafile\ Drive\ Client.plist

After running the command, The file was still there. I also removed it.

You may also find this FAQ useful: Seafile FAQ & Known-Issues

1 Like

defaults delete ~/Library/Preferences/com.seafile.Seafile\ Drive\ Client.plist

1 Like

The FAQ is all about Seafile Desktop Sync Client, not SeaDrive. Good to know though. This FAQ did not show up in my search engine response.