# Library won't update after folder delete

**URL:** <https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721>\
**Category:** Plex Media Server\
**Tags:** server-windows, library-management, player-windows\
**Created:** [February 1, 2021, 6:55pm UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721 "2021-02-01T18:55:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![weybrew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/weybrew/32/4035_2.png) [@weybrew](https://forums.plex.tv/u/weybrew)\
**Post date:** [February 1, 2021, 6:55pm UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/1 "2021-02-01T18:55:34Z")

</div>

Server Version#:4.47.3  
Player Version#:

I have set my Plex Media Server to update any Library folder that has changed. I deleted one of the folders included in a Movie Library. All the movies in that deleted folder immediately changed to show a red trashcan icon on the poster for that movie, yet the Library folder did not update and these deleted “trash can” movies are still there. What have I done incorrectly?

I’ve read the support article on Trash in a specific Library folder. My question is about emptying the trash…where do the deleted files go? Are they removed just from the Plex Media Server or do they also get deleted from the source folder? How can you empty the Plex Library folder trash and only get the unwanted item out of Plex while it will remain in the source folder?

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [February 2, 2021, 12:28am UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/2 "2021-02-02T00:28:45Z")

</div>

to be clear the trash can is related to the item in the database missing, not the actual video file.

it is to prevent accidental deletion of things from database. I’m guessing you do not have “empty trash automatically after every scan” enabled in library settings.

 ![Plex](https://global.discourse-cdn.com/plex/original/3X/9/7/977d1ce55bbd995e62554aca9bb4aaf40229b9b4.jpeg)

you can it manually from the library menu as well

![Plex](https://global.discourse-cdn.com/plex/original/3X/9/c/9c96e0d4b4a3b2426d3c6e958eb3aeb07054f6c7.png)

---

<div class="post-metadata">

**Author:** ![weybrew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/weybrew/32/4035_2.png) [@weybrew](https://forums.plex.tv/u/weybrew)\
**Post date:** [February 2, 2021, 7:09am UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/3 "2021-02-02T07:09:15Z")

</div>

Thanks for the reply, Big Wheel. The attached screenshots show my problem. I want to delete “The Highwaymen” from my Library folder. I’ve shown you my video file before the delete and again after. As you can see, the file is gone from the Library…but it’s also gone from the video folder as well! What exactly does your term “filesystem” mean on the delete confirmation screen? ![plex1](https://global.discourse-cdn.com/plex/original/3X/b/f/bf8906751726aa4406b5d05a9d1dd29db8be6b92.gif)

 ![plex2](https://global.discourse-cdn.com/plex/original/3X/7/9/796ebd34412c9a9f75fa5b460369e96f2432a575.gif) ![plex3](https://global.discourse-cdn.com/plex/original/3X/e/3/e304b8ba601b0e559ad7ebbecfb4dbf3aef75c90.gif) ![plex4](https://global.discourse-cdn.com/plex/original/3X/d/6/d6267c1fa384f5f5d92ea6d037a13aab6f7d3a3d.gif) ![plex5](https://global.discourse-cdn.com/plex/original/3X/3/f/3f7cde8f24e3c38e7b7daf6bc3eed35dd13a7a30.gif)

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [February 2, 2021, 8:02am UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/4 "2021-02-02T08:02:21Z")

</div>

> [@weybrew](#):
>
> What exactly does your term “filesystem” mean on the delete confirmation screen?

sorry I thought you meant you were removing a folder from Library settings.

> [@weybrew](#):
>
> I deleted one of the folders included in a Movie Library.

A deletion using the menu should immediately remove from DB and filesystem

But I do wonder now what folder/directory you have set for the library? If it is just the root of the drive like E:\ then I can see that happening.

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [February 2, 2021, 8:16am UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/5 "2021-02-02T08:16:55Z")

</div>

> [@weybrew](#):
>
> How can you … only get the unwanted item out of Plex while it will remain in the source folder?

I’d recommend against doing this. If you don’t want Plex to discover a file and add it to the Library, your best bet is to not put the file in a Library source folder.

That said, it is possible to create a `.plexignore` file and exclude specific files or directories.

[https://support.plex.tv/articles/201381883-special-keyword-file-folder-exclusion/](https://support.plex.tv/articles/201381883-special-keyword-file-folder-exclusion/)

---

<div class="post-metadata">

**Author:** ![weybrew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/weybrew/32/4035_2.png) [@weybrew](https://forums.plex.tv/u/weybrew)\
**Post date:** [February 2, 2021, 3:53pm UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/6 "2021-02-02T15:53:13Z")

</div>

Good Morning, Big Wheel. As you can tell by now, I am not a techie, so some of your terminology is confusing me. Let me see if I can give you more specific information.

The movie I wanted to delete was originally in F:\K drive movies\Kevin Costner\The Highwaymen  
The Plex Library folder is here C:\User\weyb\AppData\Local\Plex\Plex Media Server  
The Library folder I created was called F: drive movies and I wanted to add the Kevin Costner movie file JFK into this library, so I edited the Library to include the Kevin Costner _folder_.I had forgotten that doing so would bring _all_ the Kevin Costner files along, too. My intent was to isolate JFK so my wife could find it easily, so I decided to **undo** the added Kevin Costner folder from the the Library by editing the folders included in the Library. When I did that, all the Kevin Costner movie files got the red trash icon.  
I then created a new Library “JFK”, created a new sub-folder in the Kevin Costner F:\K drive movies\Kevin Costner folder just to hold the JFK movie, and used that newly created folder as the only folder in the newly created Library “JFK.” That successfully created a new Library as I wanted.  
At this point I wanted to remove all the remaining Kevin Costner movies from the F: drive movies Library…but certainly _not_ remove them from the original Kevin Costner source folder.  
Sorry for rambling on, but I hope you can follow my actions, odd as they may have been. But now I need to remove the KC movie files from the F:\ movie Library and restore them to the F:\K drive movies\Kevin Costner source folder. The new JFK Library with only the JFK movie in it would remain.

---

<div class="post-metadata">

**Author:** ![weybrew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/weybrew/32/4035_2.png) [@weybrew](https://forums.plex.tv/u/weybrew)\
**Post date:** [February 2, 2021, 3:58pm UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/7 "2021-02-02T15:58:03Z")

</div>

Thank you, Volts, for your reply and this information. As you can tell from my reply to Big Wheel that was my intent…to isolate JFK from the source folder and then undo my earlier mistake.

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [February 2, 2021, 5:20pm UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/8 "2021-02-02T17:20:01Z")

</div>

One thing you could consider is using a **Collection** to group and hi-light the JFK movies.

> [https://support.plex.tv/articles/201273953-collections/](https://support.plex.tv/articles/201273953-collections/)

Collections have pros and cons. It’s also fine to use a different Library.

It sounds like you have movies directly on the “root” of your hard drive, is that correct?

`F:\The Movie Name (2016).mp4`

This can make a few things more complicated, including this issue that you’re wrangling.

It’s generally recommended not to do this. Instead, gather the movies into a folder/directory.

`F:\F-Movies\The Movie Name (2016).mp4`  
`F:\F-Movies\Funny Movie Name (2017).mp4`  
`F:\F-Movies\Sad Movie (2018).mp4`

In Plex, you point your Library to `F:\F-Movies` instead of directly at `F:\`.

That allows you to create another folder/directory for the JFK movies, without it being a subdirectory of the other one.

`F:\JFK-Movies\JFK Movie (yyyy).mp4`  
`F:\JFK-Movies\Another JFK Movie (yyyz).mp4`

—-

I think that’s basically what you’ve described doing. 🙂

---

<div class="post-metadata">

**Author:** ![weybrew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/weybrew/32/4035_2.png) [@weybrew](https://forums.plex.tv/u/weybrew)\
**Post date:** [February 2, 2021, 6:04pm UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/9 "2021-02-02T18:04:23Z")

</div>

Yes, Volts, if I follow your descriptions correctly, that is what I’ve done. I didn’t know about COLLECTIONS…I’ll read up on that. But, now that it’s already done, how do I fix it? In the attached screenshot, how do I get Draft Day out of its current Library and not delete it from the source folder?

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [February 3, 2021, 1:16am UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/10 "2021-02-03T01:16:39Z")

</div>

I don’t think your attachment was attached.

---

<div class="post-metadata">

**Author:** ![weybrew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/weybrew/32/4035_2.png) [@weybrew](https://forums.plex.tv/u/weybrew)\
**Post date:** [February 3, 2021, 5:43am UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/11 "2021-02-03T05:43:23Z")

</div>

Oops! Sorry…

 ![volt1](https://global.discourse-cdn.com/plex/original/3X/5/c/5ce0740651513de433373ad38623625c4008d310.gif)

Update… I’ve gotten things straightened out using your suggested guidelines. I created a new root folder and copied all of the original source file there. Then I manually deleted all the trash files in the library, letting them delete from the original source file. Once that was done I “reloaded” the original source file. Now everything is where it should be. Lesson learned. Thanks for all comments.

---

<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:** [May 4, 2021, 5:44am UTC](https://forums.plex.tv/t/library-wont-update-after-folder-delete/685721/12 "2021-05-04T05:44:22Z")

</div>

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