# \[API\] bug with removing Plex movie trailers cleared?

**URL:** <https://forums.plex.tv/t/api-bug-with-removing-plex-movie-trailers-cleared/933491>\
**Category:** Dev/API Corner\
**Tags:** pms-api\
**Created:** [November 14, 2025, 9:48am UTC](https://forums.plex.tv/t/api-bug-with-removing-plex-movie-trailers-cleared/933491 "2025-11-14T09:48:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rossinior](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rossinior](https://forums.plex.tv/u/rossinior)\
**Post date:** [November 14, 2025, 9:48am UTC](https://forums.plex.tv/t/api-bug-with-removing-plex-movie-trailers-cleared/933491/1 "2025-11-14T09:48:26Z")

</div>

Hi guys,

in July I reported a bug that happens using the Plex PMS API to delete a trailer. Can anybody tell me whether this has been cleared/fixed?

> [@How to delete a Plex movie trailer correctly?](https://forums.plex.tv/t/how-to-delete-a-plex-movie-trailer-correctly/924636):
>
> Hi guys’n’girls, I have a German language movie library and it always hurt my feelings that I have movie trailers in my library with English audio. Using PlexAPI and Python, I found a way to delete all trailers with audio not in German language. And those trailer disappear. To make a long story short, I am searching for all movies with trailer extras, then check the audio track languages and in addition to that I check also the extra title for mentioning of German language. All non-German tra…

I am currently working on a maintainance app for Plex library which will (amongst many other features) allow to remove trailers from movies. And I do not want to cause any problems with this.

So, if somebody from the team would be so kind to have a look at it, I could disable the feature to allow more time to fix this bug if necessary.

But I think that it’s a bug that needs to be fixed…. please have a look in that other thread.

---

<div class="post-metadata">

**Author:** ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)\
**Post date:** [November 14, 2025, 10:06am UTC](https://forums.plex.tv/t/api-bug-with-removing-plex-movie-trailers-cleared/933491/2 "2025-11-14T10:06:16Z")

</div>

There is a field on the metadata item `primaryExtraKey` that only gets updated when a full list of extras gets processed on a refresh.

Manually deleting extras will leave that field hanging around there as this was never a consideration as there is no method in normal operation to remove extras like this.

There is an open issue for this from your previous post, it’s just obviously not a super high priority. I can’t promise when this will be looked at but it is on our board.

---

<div class="post-metadata">

**Author:** ![rossinior](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rossinior](https://forums.plex.tv/u/rossinior)\
**Post date:** [November 14, 2025, 1:10pm UTC](https://forums.plex.tv/t/api-bug-with-removing-plex-movie-trailers-cleared/933491/3 "2025-11-14T13:10:44Z")

</div>

Thank you @drzoidberg33 for these insights. Then I’ll probably add a warning about that in my app.

Refreshing the metadata does not help in fixing this. Otherwise, I had gone that path in July already.

I agree. It is absolutely impossible to pre-think all scenarii that can happen if you give API control to fools like myself.

From the beginning of this trailers feature, I hate non-native-language trailers for my movies. For movies that have German trailers, I solve this with adding a local trailer. But this option is not feasible for many older movies and the pre-play feature (play xy trailers before playing the movie) offers these English trailers to my family who always look at me in agony about this. Therefore, I was so happy to see that there’s a method of getting rid of these trailers in a surgical operation. It solves some real world problem of mine.

My app will offer to check all trailers for audio language (plus an extra check for the titles of local trailers) for specific languages - and has an option to delete all non-matching trailers. It even gets a list of those movies to the user for them to check this. It will also be able to rename trailer titles to the library language title of a movie (another problem of mine… I like the trailer and check the title in the player ui … and I don’t get an idea of how the movie title is in my language).

Thank you for checking on this. I appreciate.
