> For the complete documentation index, see [llms.txt](https://www.tvrename.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.tvrename.com/menu/tools-menu/find-orphan-media-files.md).

# Find Orphan Media Files

Finds video files in the library that might not need to be there

This tool scans through the TV Library to find files that might not need to be in the library.

![](https://3508557057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx0gPeIfHpbgTioNust1M%2Fuploads%2FtyrJr8Sr3VLUQZVgjwEZ%2Fimage.png?alt=media\&token=7cba478e-e547-4e9c-ac14-c0a678c899e9)

It identifies 4 types of file:

| Type                                     | Description                                                                                                                                                                                                |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| File does not match a Filename Processor | The file is in the library, but the filename does not match any of the filename processors. Therefore TV Rename cannot work out which season / episode it is meant to be for.                              |
| File is in the wrong series folder       | The file seems to relate to a specified season, but it is stored in another season's folder.                                                                                                               |
| Season not found                         | The file matches a filename processor, but the filename processor has looked at the filename and considers it to be part of a season that does not exist (according to the source provider for that show). |
| Episode not found                        | The file matches a filename processor, but the filename processor has looked at the filename and considers it to be an episode that does not exist (according to the source provider for that show).       |

The information is presented only for information. Right clicking gives some options to review:

1. The folder that contains the file
2. The Episode Guide within TV Rename
3. The Source Provider's view of the show

If you get many files that have been mapped to the incorrect season/episode then you may need to review the Filename Processors to adjust them to interpret files correctly.

{% content-ref url="/pages/374eOHeIqidhYGJ8YOci" %}
[Filename Processors](https://www.tvrename.com/menu/options-menu/filename-processors.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.tvrename.com/menu/tools-menu/find-orphan-media-files.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
