# delete show / movie from PlexConnect

**URL:** https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390
**Category:** Apps & Creations
**Created:** [January 25, 2014, 10:52am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390 "2014-01-25T10:52:38Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![bberu](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bberu](https://forums.plex.tv/u/bberu)
#### Post date: [January 25, 2014, 10:52am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/1 "2014-01-25T10:52:38Z")

</div>

Hi

&nbsp;

Is there a way to directly delete a show / movie from the PlexConnect aTV interface ?

I've searched but not been able to find one. It is possible to mark watch / unwatch but not to delete.

&nbsp;

If it does not exist, this would be usefull to implement it.

&nbsp;

Regards

Bruno

---

<div class="post-metadata">

### Author: ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)
#### Post date: [January 25, 2014, 10:58am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/2 "2014-01-25T10:58:51Z")

</div>

No, it is not possible.

---

<div class="post-metadata">

### Author: ![ULTRA77](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ultra77/32/306336_2.png) [@ULTRA77](https://forums.plex.tv/u/ULTRA77)
#### Post date: [May 30, 2016, 9:54pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/3 "2016-05-30T21:54:52Z")

</div>

Has there been any development for the file delete feature on PlexConnect?

It would be so nice to have, if there is no official delete feature is there a simple hack that someone could recommend?

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 2, 2016, 4:28am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/4 "2016-06-02T04:28:11Z")

</div>

PlexWeb or other supported clients are your only option. @baa already stated this basically.

---

<div class="post-metadata">

### Author: ![roidy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/roidy/32/128627_2.png) [@roidy](https://forums.plex.tv/u/roidy)
#### Post date: [June 11, 2016, 9:33am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/5 "2016-06-11T09:33:35Z")

</div>

Deletion of media has now been added, go grab the latest commit.

It’s turned off by default because of the inherent danger, to use it go to Settings and set “Allow deletion of media” to “Yes” after that a new “Delete” item will be available in the context menus when you hold select on an item. This works for Movies, Entire Shows, Seasons and individual Episodes.

Please be careful with this feature… With great power, comes great responsibility. If you delete an entire TV Show when you only wanted to delete a single episode, well that’s on you 😃

---

<div class="post-metadata">

### Author: ![alias\_rex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alias_rex/32/887_2.png) [@alias\_rex](https://forums.plex.tv/u/alias_rex)
#### Post date: [June 23, 2016, 4:42pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/6 "2016-06-23T16:42:03Z")

</div>

> @roidy said:  
> Deletion of media has now been added, go grab the latest commit.
> 
> It’s turned off by default because of the inherent danger, to use it go to Settings and set “Allow deletion of media” to “Yes” after that a new “Delete” item will be available in the context menus when you hold select on an item. This works for Movies, Entire Shows, Seasons and individual Episodes.
> 
> Please be careful with this feature… With great power, comes great responsibility. If you delete an entire TV Show when you only wanted to delete a single episode, well that’s on you 😃

So, this isn’t working for me on my ATV2. The screen just flashes and the file remains. Does this feature require a specific version of PMS to work? I’m stuck on PMS 0.9.16.6 because they’ve dropped support for OS X 10.6.8.

---

<div class="post-metadata">

### Author: ![roidy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/roidy/32/128627_2.png) [@roidy](https://forums.plex.tv/u/roidy)
#### Post date: [June 26, 2016, 6:56am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/7 "2016-06-26T06:56:32Z")

</div>

Umm… not sure if older versions of PMS allow you to delete files. Does your PMS have the “Allow media deletion” setting and is it checked?

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/b/1/b15a803eca7321c2323f8477bd1d89290a8d3a41.jpg)

---

<div class="post-metadata">

### Author: ![alias\_rex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alias_rex/32/887_2.png) [@alias\_rex](https://forums.plex.tv/u/alias_rex)
#### Post date: [June 26, 2016, 5:57pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/8 "2016-06-26T17:57:50Z")

</div>

> @roidy said:  
> Umm… not sure if older versions of PMS allow you to delete files. Does your PMS have the “Allow media deletion” setting and is it checked?
> 
> ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/b/1/b15a803eca7321c2323f8477bd1d89290a8d3a41.jpg)

Yes, the PMS version I have (which was released only a month ago or so) has that delete option available and it is enabled.

When I try to delete a video file in PlexConnect, the screen flashes briefly and then returns with the unwanted file still there.

The [PMS log](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) shows the following:

> Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - Request: [192.168.2.102:54584] DELETE /library/metadata/37299&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (4 live) TLS GZIP  
> Jun 26, 2016 10:52:31 [0x118581000] DEBUG - Completed: [192.168.2.102:54584] DELETE /library/metadata/37299&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (4 live) TLS GZIP 3ms 347 bytes 400  
> Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - Request: [192.168.2.100:58714] GET /library/metadata/35558/allLeaves (5 live) TLS  
> Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.  
> Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - Auth: Came in with a super-token, authorization succeeded.  
> Jun 26, 2016 10:52:31 [0x118c81000] DEBUG - It took 0.0 sec to serialize a list with 19 elements.  
> Jun 26, 2016 10:52:31 [0x1189ad000] DEBUG - Completed: [192.168.2.100:58714] GET /library/metadata/35558/allLeaves (5 live) TLS 24ms 25071 bytes 200  
> Jun 26, 2016 10:52:32 [0x119416000] VERBOSE - Statistics: (Apple TV) Reporting 25071 bytes for account 1 on LAN: 1

[Here is the PlexConnect.log.](http://pastebin.com/rUQSGbxW "Here is the PlexConnect.log.")

Here is my Settings.cfg. Maybe there is something wrong in it:

[PlexConnect]  
enable\_plexgdm = False  
ip\_pms = 192.168.2.100  
port\_pms = 32400  
enable\_dnsserver = True  
port\_dnsserver = 53  
ip\_dnsmaster = 64.59.144.93  
prevent\_atv\_update = True  
enable\_plexconnect\_autodetect = False  
ip\_plexconnect = 192.168.2.100  
hosttointercept = [trailers.apple.com](http://trailers.apple.com)  
port\_webserver = 80  
enable\_webserver\_ssl = True  
port\_ssl = 443  
certfile = ./assets/certificates/trailers.pem  
allow\_gzip\_atv = False  
allow\_gzip\_pmslocal = False  
allow\_gzip\_pmsremote = True  
loglevel = High  
logpath = .

---

<div class="post-metadata">

### Author: ![roidy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/roidy/32/128627_2.png) [@roidy](https://forums.plex.tv/u/roidy)
#### Post date: [June 27, 2016, 10:25am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/9 "2016-06-27T10:25:41Z")

</div>

Umm… strange, the PMS log clearly shows the DELETE request is received but the file isn’t deleted.

---

<div class="post-metadata">

### Author: ![roidy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/roidy/32/128627_2.png) [@roidy](https://forums.plex.tv/u/roidy)
#### Post date: [June 27, 2016, 1:01pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/10 "2016-06-27T13:01:07Z")

</div>

Ok, I think I see the problem, the url is malformed:-

/library/metadata/37299&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx  
the & should be a ? like so.  
/library/metadata/37299?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx

Could you replace the utils.js file in the /PlexConnect/assets/js directory with this one, and let me know if it works:-

NOTE:- You’ll need to remove the .txt extension so the file is just utils.js, I can’t attach a js file to the forum.

---

<div class="post-metadata">

### Author: ![alias\_rex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alias_rex/32/887_2.png) [@alias\_rex](https://forums.plex.tv/u/alias_rex)
#### Post date: [June 27, 2016, 3:55pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/11 "2016-06-27T15:55:45Z")

</div>

> @roidy said:  
> Ok, I think I see the problem, the url is malformed:-
> 
> /library/metadata/37299&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx  
> the & should be a ? like so.  
> /library/metadata/37299?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
> 
> Could you replace the utils.js file in the /PlexConnect/assets/js directory with this one, and let me know if it works:-
> 
> NOTE:- You’ll need to remove the .txt extension so the file is just utils.js, I can’t attach a js file to the forum.

roidy,

Thanks so much, that seems to have fixed it. The Delete function is working now.

Line 74 of the old util.js file was `if (accessToken!='') url = url + '&X-Plex-Token=' + accessToken;` Is that “&” a typo?

---

<div class="post-metadata">

### Author: ![roidy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/roidy/32/128627_2.png) [@roidy](https://forums.plex.tv/u/roidy)
#### Post date: [June 27, 2016, 3:57pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/12 "2016-06-27T15:57:53Z")

</div>

Yep, the & should be a ? question mark. I’ll push the changes to GitHub now you’ve confirmed it works, thanks.

---

<div class="post-metadata">

### Author: ![bberu](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bberu](https://forums.plex.tv/u/bberu)
#### Post date: [July 6, 2016, 5:10am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/13 "2016-07-06T05:10:01Z")

</div>

Hi !  
Coming back to my topic !  
Tried to pull the last github commit this morning, and still having the wrong utils.js file (the one with the & and not the ?)  
version I have : 0.5-dev-110616  
obtained through “[https://github.com/iBaa/PlexConnect](https://github.com/iBaa/PlexConnect)” -\> Download.  
Strange thing is that Roidy correction appears in the history but the wrong file is still there.

Second pull was OK, will try this evening.  
Bruno

---

<div class="post-metadata">

### Author: ![bberu](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bberu](https://forums.plex.tv/u/bberu)
#### Post date: [July 8, 2016, 4:37am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/14 "2016-07-08T04:37:19Z")

</div>

I am afraid it is not working for me :

Apple TV 3 - 6.2  
Plex Connect 0.5-dev-110616  
PMS 1.0.0.2261

utils.js contains the following lines :

/\*

- Delete an item from the library  
\*/  
function deleteItem(PMS\_baseURL, accessToken, ratingKey)  
{  
var url = PMS\_baseURL + “/library/metadata/” + ratingKey;  
if (accessToken!=’’) url = url + ‘?X-Plex-Token=’ + accessToken;

![](https://global.discourse-cdn.com/plex/original/3X/7/7/77cf7f7d94eb83ad2aed35d7d6f450fcf5a2de0a.png)

---

<div class="post-metadata">

### Author: ![bberu](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bberu](https://forums.plex.tv/u/bberu)
#### Post date: [July 10, 2016, 11:40am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/15 "2016-07-10T11:40:09Z")

</div>

In fact I don’t even have a menu proposing deletion. Menu contains possibility to mark watch/unwatch, to change fanart and another one I do not remember, but no choice for deletion

Something I am missing ?

Bruno

---

<div class="post-metadata">

### Author: ![alias\_rex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alias_rex/32/887_2.png) [@alias\_rex](https://forums.plex.tv/u/alias_rex)
#### Post date: [July 10, 2016, 5:05pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/16 "2016-07-10T17:05:33Z")

</div>

> @bberu said:  
> In fact I don’t even have a menu proposing deletion. Menu contains possibility to mark watch/unwatch, to change fanart and another one I do not remember, but no choice for deletion
> 
> Something I am missing ?
> 
> Bruno

You have to enable the feature in PlexConnect’s settings and on the PMS. Then the menu option will appear.

---

<div class="post-metadata">

### Author: ![bberu](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bberu](https://forums.plex.tv/u/bberu)
#### Post date: [July 11, 2016, 7:59pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/17 "2016-07-11T19:59:42Z")

</div>

Indeed, it works far better with the option set into PlexConnect parameters…

---

<div class="post-metadata">

### Author: ![ULTRA77](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ultra77/32/306336_2.png) [@ULTRA77](https://forums.plex.tv/u/ULTRA77)
#### Post date: [December 10, 2016, 11:27pm UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/18 "2016-12-10T23:27:04Z")

</div>

Hello, I also have the problem of not finding the delete option in the PlexConnect drop down menu on my ATV3.

Can anyone please tell me were I have goofed up? /🙂

I get only the following options:

1. Make as Watched
2. Mark as Unwatched
3. Change Poster
4. Change Fanart

Currently running Version 0.5 dev / Commit Date 24 May 2015

I have the ‘Allow media deletion’ option selected in PMS (Version 1.3.2.3112)

However I cannot find any option for delete media in the PlexConnect settings…

---

<div class="post-metadata">

### Author: ![ULTRA77](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ultra77/32/306336_2.png) [@ULTRA77](https://forums.plex.tv/u/ULTRA77)
#### Post date: [December 11, 2016, 12:24am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/19 "2016-12-11T00:24:18Z")

</div>

Everything working good now, just updated to PlecConnect 0.5-dev-110616

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [December 21, 2019, 1:08am UTC](https://forums.plex.tv/t/delete-show-movie-from-plexconnect/55390/20 "2019-12-21T01:08:59Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
