Clearing Jellyfin’s cache can help recover disk space or troubleshoot stale images, playback problems, and other temporary glitches. The safest approach is to identify the server’s actual cache location, stop Jellyfin, and remove the cache contents without touching your media, configuration, or database. The exact steps depend on how Jellyfin is installed, so use the section that matches your setup.
What Does the Jellyfin Cache Do?
Jellyfin uses cache storage for temporary or generated files that can make the server more responsive. Depending on your setup and enabled features, these files may include image thumbnails, artwork, trickplay images, and temporary transcoding data. Jellyfin can generally recreate cache files when needed, but rebuilding them may take time and temporarily make browsing or playback feel slower.
Cache is not the same as your media library or Jellyfin’s core data. Your configuration, user accounts, watched status, library information, and other important server data are stored elsewhere. Deleting the wrong folder can remove settings or library information, so do not assume every folder named “Jellyfin” is safe to empty.
Before You Clear the Jellyfin Cache
First, confirm which cache directory your server uses. Paths can differ by operating system, installation method, container configuration, or custom settings. Check Jellyfin’s dashboard for its server paths, review your installation settings, or inspect your Docker volume mappings. The examples below describe common locations, not a guarantee that your installation uses them.
- Stop Jellyfin before manually deleting cache files. This avoids interfering with active playback, artwork generation, or transcoding.
- End active streams and wait for any transcoding job to finish, if possible.
- Make sure you are working in the cache directory only. Do not delete the configuration, data, or media directories.
- If you are uncertain about a path, rename the cache folder or make a backup before deleting anything.
- After clearing the cache, allow Jellyfin time to rebuild generated files. The first library visit or playback may be slower.
Clear the Cache from Jellyfin’s Dashboard
Some Jellyfin versions provide a cache-cleaning task in the server dashboard. Sign in with an administrator account and open Dashboard, then look for Scheduled Tasks. If a task such as Clean Cache Directory is available, select it and choose the option to run it. Task names and availability can vary between Jellyfin versions.
This is a convenient first option because Jellyfin handles the cleanup itself. However, a scheduled task may not remove every generated image or resolve every stale-artwork issue. If the dashboard task is unavailable or does not solve the problem, use the manual method for your installation below.
Clear the Jellyfin Cache on Linux
For many Linux package installations, the cache directory is /var/cache/jellyfin. Your installation may use a different location, especially if you installed Jellyfin manually or changed its paths. Confirm the directory before running any deletion command.
On a system using systemd, stop the Jellyfin service, remove the contents of the confirmed cache directory, and start the service again. For a standard installation using the common path, the commands are:
sudo systemctl stop jellyfin
sudo find /var/cache/jellyfin -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +
sudo systemctl start jellyfin
The command removes items inside the cache folder while leaving the folder itself in place. Do not substitute a broad path such as /var/lib/jellyfin or your media directory. If your cache path differs, replace the example path only after confirming the correct location. On systems without systemd, use the service-management method appropriate for your distribution.
Clear the Jellyfin Cache on Windows
A common cache location for the Windows installer is C:\ProgramData\Jellyfin\Server\cache. Windows may hide the ProgramData folder, and a custom installation can store the cache elsewhere. Verify the path in your server settings before proceeding.
Stop the Jellyfin service using the Windows Services app or an administrator PowerShell window. If the service is named Jellyfin on your system, you can use the following commands after confirming the example path is correct:
Stop-Service Jellyfin
Get-ChildItem -LiteralPath 'C:\ProgramData\Jellyfin\Server\cache' -Force | Remove-Item -Recurse -Force
Start-Service Jellyfin
Run PowerShell as an administrator if Windows reports that you do not have permission. If the service has a different name or Jellyfin is running as a regular application rather than a service, close the Jellyfin server first, clear only the confirmed cache contents, and then start it again.
Clear the Jellyfin Cache in Docker
In Docker, Jellyfin’s cache is commonly connected to a host folder or Docker volume, often mounted at /cache inside the container. Check your Compose file, container settings, or volume details to find the actual cache mapping. Do not confuse it with the /config mount, which holds important Jellyfin configuration and database files.
Stop the Jellyfin container before removing files. If your Compose file maps a host folder to /cache, clear the contents of that host folder, leaving the folder itself intact, and then start the container again. For example, the sequence may be:
docker compose stop jellyfin
Clear the contents of the confirmed host-side cache folder.
docker compose start jellyfin
The Compose service may not be named jellyfin, so use the service name from your own file. If you use a named Docker volume, identify it carefully before changing anything. Never remove a volume simply because its name contains “jellyfin”; it may contain configuration or other persistent data.
Clear the Cache on a NAS or Other Server
NAS installations vary by device, package, and container manager. Look for Jellyfin’s configured cache path in the package settings, dashboard, or container volume mappings. If the NAS provides a way to stop the Jellyfin service, use it before cleaning the cache. Then delete only the contents of the verified cache folder and restart the server.
If you cannot tell which directory is safe, pause and check the NAS documentation or your container configuration rather than guessing. In particular, keep cache storage separate from the folders holding your Jellyfin configuration and media collection.
Clear Jellyfin App or Browser Cache Separately
Sometimes the problem is not the server cache. If artwork looks wrong in just one browser, or the web interface behaves unexpectedly on one device, clear that browser’s site data or try a private window. For a Jellyfin mobile, TV, or streaming-device app, use the device’s app-storage settings to clear the app cache if that option is available.
Client-side cache is separate from the server’s cache. Clearing it may help with a display issue on one device, but it will not free space on the Jellyfin server or remove server-generated temporary files. Conversely, clearing the server cache may not fix stale data retained by a particular app.
What Happens After You Clear the Cache?
Jellyfin can regenerate many cached files, but the rebuild may not happen all at once. Artwork or thumbnails may appear gradually as you browse libraries, while certain image or trickplay files may be recreated by background tasks. Transcoding files are temporary, but clearing them can interrupt an active session if the server is still using them—which is why stopping Jellyfin first matters.
If your aim is to correct missing or incorrect artwork, deleting the cache may not be enough. Check the item’s metadata and image settings, then use the relevant library or metadata refresh options in Jellyfin. A full metadata refresh can take substantially longer than clearing temporary cache files, so use it only when needed.
Common Mistakes to Avoid
- Deleting the data directory: Jellyfin’s data and configuration folders can contain its database, settings, and user information. Do not clear them as a cache-cleaning shortcut.
- Deleting media files: Your movies, shows, music, and other media are separate from cache. Do not run cleanup commands against a library folder.
- Removing a Docker volume without checking it: A volume may hold persistent configuration rather than disposable cache files.
- Clearing files while Jellyfin is running: The server may be using files that you are trying to remove, potentially interrupting playback or causing errors.
- Expecting an instant speed improvement: Jellyfin may need to regenerate images and other files, so performance can be temporarily slower after cleanup.
How Often Should You Clear Jellyfin’s Cache?
Most users do not need to clear the Jellyfin cache on a regular schedule. Clear it when you need to reclaim space, troubleshoot a specific issue, or follow a task recommended by Jellyfin. If the cache repeatedly grows until it fills your disk, check which files are accumulating and confirm that your cache directory has enough allocated storage.
Also check whether temporary transcoding files are being removed as expected and whether Jellyfin’s scheduled tasks are running. Frequent manual deletion can make the server regenerate the same files over and over, increasing disk activity and slowing down browsing. A one-time cleanup is usually more useful than routinely emptying the cache without identifying the cause of the growth.
Conclusion
To clear Jellyfin’s cache safely, confirm the configured cache location, stop the server, remove only the contents of that cache directory, and restart Jellyfin. The common path depends on whether you use Linux, Windows, Docker, or a NAS, so verify your installation rather than copying a path blindly. Keep your configuration, data, and media directories untouched. Once Jellyfin is running again, give it time to rebuild any generated files it needs.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.