# Deleted 0 byte folders on untrusted device

**URL:** https://forum.syncthing.net/t/deleted-0-byte-folders-on-untrusted-device/21411
**Category:** Support
**Created:** [January 8, 2024, 10:18am UTC](https://forum.syncthing.net/t/deleted-0-byte-folders-on-untrusted-device/21411 "2024-01-08T10:18:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![utmuk](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/u/87869e/32.png) [@utmuk](https://forum.syncthing.net/u/utmuk)
#### Post date: [January 8, 2024, 10:18am UTC](https://forum.syncthing.net/t/deleted-0-byte-folders-on-untrusted-device/21411/1 "2024-01-08T10:18:30Z")

</div>

On an untrusted device I found thousands of zero-byte folders amongst encrypted files and folders. And I deleted them. I now realize I shoudln’t have. Syncthing now displays an error message “Unexpected Items” and lists all deleted folders as “Locally Changed Items”. How can I undo this? The “Revert Local Changes” button does nothing. Isn’t it supposed to fix this?

---

<div class="post-metadata">

### Author: ![utmuk](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/u/87869e/32.png) [@utmuk](https://forum.syncthing.net/u/utmuk)
#### Post date: [January 8, 2024, 12:06pm UTC](https://forum.syncthing.net/t/deleted-0-byte-folders-on-untrusted-device/21411/2 "2024-01-08T12:06:20Z")

</div>

Done some experimenting. If I delete a file in an untrusted folder from the untrusted server, the button “Revert Local Changes” doesn’t redownload the file. So it doesn’t work properly. Though it does revert added folders and directories, or modifications to encrypted files. Why not restoring deleted files and folders? Can this be considered a bug?

---

<div class="post-metadata">

### Author: ![tomasz86](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tomasz86](https://forum.syncthing.net/u/tomasz86)
#### Post date: [January 8, 2024, 2:05pm UTC](https://forum.syncthing.net/t/deleted-0-byte-folders-on-untrusted-device/21411/3 "2024-01-08T14:05:19Z")

</div>

Maybe related: [https://github.com/syncthing/syncthing/pull/9319](https://github.com/syncthing/syncthing/pull/9319)?

---

<div class="post-metadata">

### Author: ![utmuk](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/u/87869e/32.png) [@utmuk](https://forum.syncthing.net/u/utmuk)
#### Post date: [January 11, 2024, 9:24am UTC](https://forum.syncthing.net/t/deleted-0-byte-folders-on-untrusted-device/21411/4 "2024-01-11T09:24:22Z")

</div>

That is more of a GUI problem if I understand correctly

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [February 10, 2024, 9:24am UTC](https://forum.syncthing.net/t/deleted-0-byte-folders-on-untrusted-device/21411/5 "2024-02-10T09:24:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
