# Media not removed from library

**URL:** <https://forums.plex.tv/t/media-not-removed-from-library/444852>\
**Category:** Metadata & Adding Files\
**Tags:** server-windows\
**Created:** [August 12, 2019, 3:55am UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852 "2019-08-12T03:55:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 12, 2019, 3:55am UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/1 "2019-08-12T03:55:03Z")

</div>

Server Version#: 1.16.4.1469  
Player Version#:all of them  
  
I have moved shows that have ended from one file structure to another. The new file structure has populated the data and I can watch the media there. But the old folder still reports the media in “unavailable” state. It should be deleted as it no longer exists in that file tree.

In essence I now show two copies of the same media. So unless I know exactly where the files are I get a file not found error.

And the server gets stuck for hours or days on different files.

![image](https://global.discourse-cdn.com/plex/original/3X/b/c/bc92ff399a47e54ce8a4c15fdb13b8fbeeb4413f.png)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 12, 2019, 5:08am UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/2 "2019-08-12T05:08:28Z")

</div>

By using “Get Info” it should show you the two media paths. Is this correct?

If so, after moving the media,  
Did you Scan files , Empty Trash, and Clean Bundles?

(These options are best enabled in your **Settings - Server - Library** settings by default. It preserves the integrity of what Plex sees with reality.

As for generating video preview thumbnails, it take a very long time on Synology systems especially the older ones. Those thumbnails are snapshots from about every 5 minutes of every video and achieved by reading each using the CPU. This is why the extremely long time.

On synology, if you don’t really need these, it’s recommended to turn them off unless you have a Xeon based system

Now, after examing the files listed in “Get Info”, and comparing to reality in “File Station”, it should be obvious which you can manually delete.

If scanning, empty trash, and clean bundles hasn’t removed it , you can click the “X” on the right of the name under “Get Info” and it will delete the reference to it.

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 13, 2019, 3:48am UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/3 "2019-08-13T03:48:05Z")

</div>

get info shows this

yes I ran scan , clean, empty. sever times.

There is no X to remove reference.

Maybe more explaining will help

I have a folder called current TV on a drive. I have a menu option called “current TV” and it has this folder as the source.

On a different drive I have a folder called canceled TV and I have a menu option called “canceled TV” with the folder as source.

I am creative that way. Until this last update when I moved a subfolder structure from s:\current TV\iZombie to t:\canceled TV\iZombie then ran “scan library files” Plex would delete all iZombie pointers from the menu current TV and build a new structure of pointers to “canceled TV”. Well it actually seems that a few revisions back it started moving metadata and deleting and recreating. But I didn’t really dig into exactly what was happening. But it seemed like it didn’t take as long as before and my played markers were maintained. So there was a time way back when, that after a move I had to go and mark as played for the new location. That seems to not be needed now. The problem now is that all of the old pointers remain and are just marked as “unavailable”.

I don’t want to complain, just wanted to point out the problem.

 ![image](https://global.discourse-cdn.com/plex/original/3X/d/6/d690c913e3812c11b237c9375bff80303baec927.png)

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 13, 2019, 4:37am UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/5 "2019-08-13T04:37:36Z")

</div>

i guess because this is running on a windows server.

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 13, 2019, 5:46am UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/7 "2019-08-13T05:46:19Z")

</div>

I will do this tomorrow and report back. Is this new? I have been running plex since 2014 and have never had this problem. I’m doing nothing new or different.

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 13, 2019, 9:27pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/9 "2019-08-13T21:27:06Z")

</div>

Ok So I checked and that setting is enabled. And has been and still have the issue.

![image](https://global.discourse-cdn.com/plex/original/3X/b/8/b888cc1ba30ecc7a8b70154217f88478950fe1c2.jpeg)

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 14, 2019, 7:54pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/11 "2019-08-14T19:54:38Z")

</div>

OK… so I did the repair. No issues found… got OK on all commands. Issue still remains.

Also installed the latest build. Still no joy.

If I go to the menu “canceled TV” and attempt to play it works.  
When I go to the “current TV” menu and attempt to play I get this error “please check that the file exists”

It does exist but no longer in the folder it is pointed at. That folder has been moved to another volume.

What next?

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [August 14, 2019, 8:02pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/12 "2019-08-14T20:02:33Z")

</div>

Does `Z:\TV Current` still exist and not empty? PMS has this security feature where if the base folder cannot be found, it will treat it as if the drive was disconnected and will not remove any of your medias. If you’ve already deleted that folder, recreate it and then add at least 1 file (any file) into that folder. Rescan your library then empty trash should get rid of those episodes.

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 14, 2019, 8:21pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/13 "2019-08-14T20:21:36Z")

</div>

I moved iZombie and all sub folders from here  
 ![image](https://global.discourse-cdn.com/plex/original/3X/5/4/547ea1030cc05486289c9e461d9ab97778c0cf04.png)

To here  
 ![image](https://global.discourse-cdn.com/plex/original/3X/6/4/64d71479d5de635104b7443b4249043b3d6a5715.png)

I have done this for years and never had an issue.  
after a move I always  
Scan library  
optimize  
clean  
empty

But it has always removed the menu options from plex before I optimize clean and empty.

now just the new ones are there.

There are several folders I am just using iZombie as example and to remain on topic.

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [August 14, 2019, 9:58pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/14 "2019-08-14T21:58:34Z")

</div>

Ok, that should have been fine. Can you move another show and then provide me the full pms logs.

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 15, 2019, 3:50am UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/15 "2019-08-15T03:50:21Z")

</div>

don’t know how to get logs

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [August 15, 2019, 6:14pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/16 "2019-08-15T18:14:18Z")

</div>

[https://support.plex.tv/articles/200250417-plex-media-server-log-files/](https://support.plex.tv/articles/200250417-plex-media-server-log-files/)

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 16, 2019, 3:10pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/17 "2019-08-16T15:10:08Z")

</div>

[Plex Media Server Logs\_2019-08-16\_10-07-30.zip](https://forums.plex.tv/uploads/short-url/zwmUlWtHKcTFUFDWA43m4jtxNYv.zip) (1.1 MB)

I moved Elementary. Got the same results. It populated the menu from the V: drive but did not remove the entries from the z: drive

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [August 16, 2019, 5:09pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/18 "2019-08-16T17:09:27Z")

</div>

There’s nothing in your scanner logs. Are you sure the log is from right after you moved the files and scanned your library?

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 16, 2019, 5:28pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/19 "2019-08-16T17:28:42Z")

</div>

yes it was but here is another pull.

It has been hours since the last pull.

[Plex Media Server Logs\_2019-08-16\_12-27-18.zip](https://forums.plex.tv/uploads/short-url/dLEXXgScUNgkPCW7Mn0kQC61ATU.zip) (1.1 MB)

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [August 16, 2019, 5:55pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/20 "2019-08-16T17:55:22Z")

</div>

Nope, still blank. To be clear you are doing these steps.

- move show folder from Z to V
- in Plex Web, “scan library files” on the library that points to V
- grab PMS logs

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 16, 2019, 5:57pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/21 "2019-08-16T17:57:37Z")

</div>

i ran scan all library. not jus v and z

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [August 16, 2019, 6:01pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/22 "2019-08-16T18:01:25Z")

</div>

Oh, don’t do that. The scanner logs will rotate for each library, so they can get lost if you scan all your libraries. Just scan the ones involved.

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 16, 2019, 6:22pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/23 "2019-08-16T18:22:07Z")

</div>

![image](https://global.discourse-cdn.com/plex/original/3X/0/b/0b293d9661dc4c8f2cd347c5b2dd939cc6de5933.jpeg)  
 ![image](https://global.discourse-cdn.com/plex/original/3X/a/2/a262c96f7accd4224ef878a4d6aaa6c2c4aefb1a.jpeg)  
[Plex Media Server Logs\_2019-08-16\_13-19-43.zip](https://forums.plex.tv/uploads/short-url/p7B1wRJR0kc37ULaPPndb6lXzzK.zip) (1.1 MB)

So I moved on season of Arrow .

The categories are massive. The canceled TV has 100 shows. Probably 3k files.

Current is not so big.

---

<div class="post-metadata">

**Author:** ![imcurtis](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@imcurtis](https://forums.plex.tv/u/imcurtis)\
**Post date:** [August 16, 2019, 6:22pm UTC](https://forums.plex.tv/t/media-not-removed-from-library/444852/24 "2019-08-16T18:22:50Z")

</div>

season 7

[Next page](https://forums.plex.tv/t/media-not-removed-from-library/444852.md?page=2)
