Hide Empty Folders cover

Description

What it does:

Set the configuration to clean up certain library types, by default, only TV Show libraries are checked — enable others explicitly if you want Movies, Music, etc. cleaned too.

Run automatically: Runs cleanup after every library scan. Turn off if you only want to trigger it manually.

Hide empty seasons: TV seasons with zero episodes are removed from view.

Hide empty collections: Box sets and collections with no items are removed from view.

Manual trigger: Go to Dashboard → Scheduled Tasks → Hide Empty Folders and click the play button.

How it works: After a library scan completes (or you trigger it manually), the plugin:

Finds all media items across your selected libraries Walks up the folder tree marking every ancestor as "has content" Removes database entries for folders that have no media anywhere under them The plugin uses DeleteFileLocation = false — folder entries are removed from Jellyfin's database only. Your files stay exactly where they are.

Collection folders (the top-level "Movies", "TV Shows" containers) are never touched.

What to expect Jellyfin is the party that adds empty folders. The plugin only removes them from the library database — it never touches files on disk.

If a show is added to an empty folder: Jellyfin's real-time monitoring (or scheduled scan) picks up the new file, re-adds the previously-removed empty folder structure to the library, then the plugin removes it again within ~10 seconds. The folder may briefly reappear and vanish — this is normal.

If you run a manual library scan: The plugin runs immediately after the scan completes and cleans up any empty folders.

If you trigger the scheduled task (Dashboard → Scheduled Tasks → Hide Empty Folders): It runs the same cleanup on demand.

Files on disk are never deleted.

Share this plugin

Embed Badge

Add this badge to your README to link back to your hub page:

Listed on JellyWatch Hub

Installation Instructions

Add this URL to Jellyfin under Dashboard → Plugins → Repositories → Add:

https://raw.githubusercontent.com/CapstonPeters/Jellyfin-Hide-Empty-Folders/main/manifest.json

Then go to Catalog and perform a cache refresh CTRL-F5, find Hide Empty Folders, and click Install. Restart Jellyfin.

Or:

Download the latest ZIP from Releases Extract into your Jellyfin plugin folder — the resulting directory should look like: plugins/Hide Empty Folders/ ├── Jellyfin.Plugin.HideEmptyFolders.dll ├── thumb.png └── meta.json

Restart Jellyfin Configuration Open Dashboard → Plugins → Hide Empty Folders → Settings.

Comments (0)

No comments yet. Be the first to share your thoughts!

Details

Hide Empty Folders

jellyfinby Jo_Pettitt 8
GitHub Stars 0
Approved
Submitted

Similar Plugins

Auto Collections

579

Automatically creates and maintains dynamic collections based on flexible criteria.

Jellyfin Auto Collections Tool

542

Automatically makes and updates collections based on internet lists such as IMDb and Letterboxd.

Jellyfin Powertoys

508

A collection of plugins to enhance Jellyfin with additional features and tools.

Media Cleaner

444

Automatically removes played media after a specified time period to keep storage under control.