Deleting folders?

I googled about this and it found this:

“However, if the whole folder is deleted and the path is no longer accessible by Syncthing, the synchronisation will automatically stop. If only the contents are deleted, then the deletions will also be pushed to other devices.”

I’m not sure if there is any hierarcy with synced folders, but I tried this: deleted a folder and it disappeared also from another computer.

What has changed after the answer?

Not sure I understand the question here…

If you define Folder A (which contains Folders B, C and D) as a Shared Folder in Syncthing then:

  • Deleting Folders B, C or D will result in Folders B, C or D being deleted from a synced device;
  • Deleting Folder A will result in Syncthing not applying any further changes to synced devices for this folder.
2 Likes

Specifically, deleting the folder marker, usually named .stfolder from folder A will stop the synchronization.

Operating systems / file managers usually start to delete a directory “depth-first”, which means the files may be gone and detected as deletions by Syncthing before the folder marker is even reached. If it’s a large dataset, recursive deletion may well take longer than the default watcher delay of 10 seconds.

2 Likes

I guess the initial answer has a problem not defining the folder and sub-folder…

Yeah, in general, when we talk about “folders” in relation to Syncthing, we mean the main root folder that you add to Syncthing, e.g. via the Web GUI.