Syncing - Keep file on main storage even thought deleted on phone

Hi All

I do not know if this has been asked. I am wondering if syncthing keeps a file on the shared folder even though it is deleted? Example: I put syncthing on my phone and share it to a folder on my server, I want to then delete a file from the phone but have it keep a copy of the file on the windows machine, is there a setting to do this?

Thanks

It’s actually quite a popular question on the Syncthing forum, often as part of a feature request for a “selective sync” feature. The short answer is “no”.

However, for your particular use case, check out the advanced ignoreDelete setting in the Syncthing documentation:

ignoreDelete is an advanced folder setting that affects the handling of incoming index updates. When set, incoming updates with the delete flag set are ignored.