Jellyfin Forum
Folder wipe issue - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Folder wipe issue (/t-folder-wipe-issue)



Folder wipe issue - solitonthe3rd - 2025-05-10

Hi, I have encountered some unexpected behavior while deleting video files via the Jellyfin webclient.

It only seems to happen in a specific scenario where there is only a single video file left in the directory for example like this:

\home\main_directory\video1.mp4
\home\main_directory\sub_directory\video2.mp4

Now if I delete video1.mp4, the whole main_directory gets deleted including whatever is left in sub_directory.
This doesn't seem to happen if there are more video files in main_directory, but there can be more subdirectories, and stuff inside them seem to not matter.

I tried to replicate the folder structure as described and rescanned, and this is what basically happens:
[2025-05-11 00:51:59.955 +02:00] [INF] [14] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Video", Name: "video1", Path: "/media/home/main_directory/video1.mp4", Id:...
[2025-05-11 00:51:59.960 +02:00] [INF] [14] Emby.Server.Implementations.Library.LibraryManager: Deleting item path, Type: "Video", Name: "video1", Path: "/media/home/main_directory", Id:...

video2.mp4 will still be shown in the Library, but unplayable, because it's gone.

Is there a setting to prevent this or is this a bug?

I am running Linux docker v10.10.7, using the web client.

Thanks in advance,
S


RE: Folder wipe issue - theguymadmax - 2025-05-11

What was the name of the sub directory?


RE: Folder wipe issue - solitonthe3rd - 2025-05-11

All the names are as stated in the example. As for when this happened the first time, I have no clue anymore since it got wiped (probably something like "\compressed 4k\").