@@ -57,6 +57,12 @@ SYNCTHING_UPDATE_FILE='.syncthing-update'
CHANGED=
TEMP_IDS_FILE=/root/.synthingids
+function remove_user_syncthing {
+ remove_username="$1"
+
+ sed -i "/<folder id=\"${remove_username}\" /,/</folder>/d" $SYNCTHING_CONFIG_FILE
+}
function new_syncthing_id {
for i in {1..8}
do