Syncthing is a free and open-source decentralized file synchronization client/server application for various operating systems.
Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized.
Your data is your data alone and you deserve to choose where it is stored if it is shared with some third party as well as how it’s transmitted over the Internet.
The core technology of Syncthing is very powerful yet clean and simple to use.
It communicates over localhost TCP port 2202 by default (can be configured). It uses RingBuffer, an efficient persisted circular buffer implemented using memory-mapped files on POSIX systems (including Linux).
Each device participating in the synchronization process holds a distinct part of that ring buffer.
No data is ever overwritten or deleted, so the buffer can be traversed forwards and backwards as needed.
Table Of Content
- 1 Steps To Uninstall Syncthing In Linux
- 1.1 Step 1: Uninstall Syncthing using command
- 1.2 Step 2: Check whether Synchronizing or not Open web interface.
- 1.3 Step 3: Find out Synchronizing Folder Location
- 1.4 Step 4: Delete Synchronizing Folder and Data From Sync Folders
- 1.5 Step 5: Delete Uninstaller file From Synchronizing Folder
- 1.6 Step 6: Check Synchronization Status
Steps To Uninstall Syncthing In Linux
In this tutorial, we will learn how to uninstall Syncthing In Linux
Step 1: Uninstall Syncthing using command
If you installed Syncthing from the official Debian/Ubuntu repository then use the below-given command to uninstall it.
$ sudo apt-get remove syncthing
Power users can directly go with the below-given command without typing any password.
$ sudo vi /etc/apt/sources.list.d/syncthing_*.list
And paste the following lines at the end of the file
deb http://apt.syncthing.net/ syncthing release
Save and exit file
Step 2: Check whether Synchronizing or not Open web interface.
Now open a web browser and go to the address bar http://localhost:8384/.
It will redirect you to web interface of Syncthing.
If it shows synchronizing then you successfully uninstall syncthing in your Linux system.
Otherwise, it may show some error message, try alternative commands or check other ways to troubleshoot the issue.
Step 3: Find out Synchronizing Folder Location
Open terminal type below given command to find out the actual synchronization folder location on your Linux system where all your data is stored.
$ sudo file -sL /var/lib/syncthing/*/*/db_journal | grep 'CWD '
After executing the above-given command it will display the following result.
/var/lib/syncthing/db_journal
Step 4: Delete Synchronizing Folder and Data From Sync Folders
If your data is not important then you can directly stop synchronization and remove all data from syncing folder using the below-given commands one by one.
If you do not want to lose important files then take a backup before running any of these commands.
$ sudo systemctl stop syncthing $ sudo rm -rf /var/lib/syncthing/*/* $ sudo rm -rf ~/.config/syncthing $ sudo rm -rf ~/.ssh $ sudo rm -rf ~/.cache $ ps aux | grep '[s]yncthing' | grep -v grep $ killall syncthing
To stop synchronization and remove all data from your Linux machine, type the below-given command.
$ sudo systemctl disable syncthing $ sudo rm /etc/systemd/system/syncthing.service
Now, if you check the synchronization status of your Linux machine then it may show some errors. To remove these errors simply type the below-given command.
$ sudo systemctl start syncthing
Step 5: Delete Uninstaller file From Synchronizing Folder
If you uninstall using apt package manager then that time uninstaller comes into existence to avoid future issues with dependency but after uninstalling the kind of problem occurs again which is quite irritating.
So if you want to avoid future issues with dependency then use the below command to delete the uninstaller file from synchronizing folder.
$ rm -rf ~/.config/syncthing/uninstall
Step 6: Check Synchronization Status
Now check the synchronization status of your Linux machine, it should not show any error.
I hope you have successfully uninstalled Syncthing from your Linux machine.