# Propagating File Deletes

**URL:** https://forum.syncthing.net/t/propagating-file-deletes/9230
**Category:** Feature
**Created:** [February 11, 2017, 2:21am UTC](https://forum.syncthing.net/t/propagating-file-deletes/9230 "2017-02-11T02:21:25Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [February 12, 2017, 8:02am UTC](https://forum.syncthing.net/t/propagating-file-deletes/9230/4 "2017-02-12T08:02:37Z")

</div>

> [@increa](#):
>
> But that’s not true for the sync-sub-directories, which is why I asked the question. Instead, when the overlaid mount is removed and the naked directory under it is exposed, all the files are deleted on all the peers. ! This directly violates “Design Principal #1” of Syncthing (keeping user data safe).

We handle his by looking for the `.stfolder` file in the folder root. If this is gone, we will interpret it as a mount failure or similar and stop the sync. If it is still present but other files are gone, we interpret it as an intentional delete. It’s not obvious to me how we would do this better in an automatic, cross platform way - but I’m open to suggestions.

Your setup with encfs is inherently risky from this standpoint, as you’ve noted.

---

_[View the full topic](https://forum.syncthing.net/t/propagating-file-deletes/9230)._
