I wanted to start from scratch with syncthing on debian 13. I tried uninstalling syncthing and reinstalling it but it was not enough, My account and all my shared folders reappeared as if I did nothing.
I managed to found a solution on my own but really struggled to find it. This is how I proceeded:
warning: you must distinguish “myuser” which is your user(a debian user) from “user” which is a parameter of systemd and enables to start syncthing automatically without opening a session.
#Uninstall syncthing
myuser@debian:~$ sudo apt remove syncthing
#cleaning the files myuser@debian:~$ sudo rm -r /home/myuser1/.local/state/syncthing/ myuser@debian:~$ sudo rm -r /home/myuser2/.local/state/syncthing/ myuser@debian:~$ sudo rm -r /root/.local/state/syncthing/
#Installing myuser@debian:~$ sudo apt install syncthing
#Configure syncthing with the webui
- start syncthing
- syncthing web ui
#Making syncthing run automatically without opening a session(acts like a server) using command lines
myuser@debian:~$ systemctl --user enable syncthing.service myuser@debian:~$ sudo systemctl --user enable syncthing.service myuser@debian:~$ sudo loginctl enable-linger myuser