How to Clean Up File Manager on Kodi
In this article
To clean up the File Manager in Kodi, you need to remove unused sources, delete empty folders, and clear cached files. This keeps your media library organized and prevents errors from broken paths. You'll need access to Kodi's settings and, ideally, a backup of your current sources if you plan to make major changes.
What You'll Need
- Access to Kodi's main menu and settings (no special tools required).
- Knowledge of where your media files are stored (e.g., network paths, USB drives, internal storage).
- Optional: A backup of your current sources list (you can export it via Kodi's settings).
Step-by-Step
- Open Kodi and go to the File Manager. From the main menu, select File Manager (it's usually on the left sidebar). If you don't see it, you may need to scroll down or use the settings gear icon to enable it.
- Review your sources list. In File Manager, you'll see a list of sources like Add sources, Profile, Root filesystem, and any you've added manually. Look for sources you no longer use—these are often old network drives, forgotten USB paths, or folders you've moved.
- Remove unused sources. Highlight a source you want to delete, press the Context Menu button (usually C on a keyboard, or the right-click on a mouse, or the menu button on a remote), and select Remove source. Confirm the deletion when prompted. This only removes the shortcut, not the actual files.
- Delete empty folders within your sources. Navigate into a source by selecting it. Look for folders that are empty or contain only leftover files like .thumbnails or .part files. Highlight the folder, press the context menu button, and choose Delete. Be careful—this permanently removes the folder and its contents.
- Clear cached thumbnails and textures. Go to Settings (gear icon) > File Manager (or Media depending on your version) > Clean library or Clean database. This removes outdated entries from your media database, which can free up space and speed up File Manager navigation. If you don't see a clean option, you can manually delete the Thumbnails folder in your Kodi userdata directory (usually
Kodi/userdata/Thumbnails)—but this will require Kodi to rebuild thumbnails next time you browse. - Check for duplicate or broken sources. In File Manager, select a source and try to navigate into it. If you get an error like "Could not connect to network server," that source is broken. Remove it as described in step 3.
- Reset the File Manager view (optional). If you've made many changes, you can reset the view by going to Settings > File Manager > Reset (or Default). This restores the default sources but does not delete your actual media files.
Common Mistakes
- Deleting sources that are still in use. If you remove a source that is part of a video or music library, Kodi will lose track of those files. Always double-check that a source isn't linked to a library before removing it.
- Deleting folders that contain media files. When you delete a folder in File Manager, it's gone permanently—no recycle bin. Make sure the folder is truly empty or you have backups.
- Cleaning the database without backing up. The "Clean library" function can remove entries that Kodi thinks are missing, but if your files are temporarily offline (e.g., an external drive is unplugged), it may remove them incorrectly. Always have your media drives connected when cleaning.
- Ignoring the context menu. Some users try to delete sources by pressing the backspace key, which doesn't work. You must use the context menu (right-click or C key) to access deletion options.
Tips
- Use the "Add source" function to re-add a source later. If you're unsure about removing a source, you can always add it back by selecting Add sources and browsing to the same path.
- Export your library before cleaning. Go to Settings > Media > Library > Export library to save a backup of your media database. This way, if something goes wrong, you can re-import it.
- Clean up regularly. Make it a habit to review your File Manager sources every few months to avoid clutter.
- Use the "File Manager" for more than just cleaning. You can also use it to copy, move, or rename files directly within Kodi, which is handy for organizing media without leaving the app.
Troubleshooting
If you can't delete a source: Make sure you're using the context menu (right-click or C key). If the option is greyed out, the source might be in use by an active library. Try cleaning the library first, then remove the source.
If you get an error when navigating to a source: The path might be incorrect or the network drive is offline. Check your network connection and try re-adding the source with the correct path.
If Kodi crashes after cleaning: This can happen if you deleted a folder that Kodi still references. Restart Kodi and try cleaning the library again. If the problem persists, you may need to restore from a backup or reset Kodi's settings (Settings > System > Reset).
If the File Manager doesn't show any sources: You may have accidentally removed all sources. Go to File Manager > Add source and re-add your media folders. If you have a backup of your sources (from an export), you can restore it.
Frequently Asked Questions
Will cleaning the File Manager delete my movies and TV shows?
No. Removing a source or cleaning the library only removes shortcuts and database entries. Your actual media files remain untouched on your hard drive or network.
How do I add a new source after cleaning?
In File Manager, select Add source, browse to the folder you want to add, give it a name, and confirm. You can also add sources from the Videos or Music sections by selecting "Add videos" or "Add music."
What's the difference between "Remove source" and "Delete"?
"Remove source" removes the shortcut from Kodi's File Manager—it doesn't touch the actual files. "Delete" permanently removes the selected folder or file from your storage.
Can I clean the File Manager from my phone or tablet?
Yes, the steps are the same if you're using Kodi on a mobile device. The context menu is accessed by long-pressing the item.
Why does Kodi keep showing a source I already deleted?
This can happen if the source is still referenced in your library. Go to Settings > Media > Library > Clean library to remove those references, then delete the source again.
Is it safe to delete the "Thumbnails" folder?
Yes, it's safe. Kodi will rebuild thumbnails automatically the next time you browse your media. This can free up significant space if you have a large library.