# Cannot delete unused "sharing label"

**URL:** <https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294>\
**Category:** Metadata & Adding Files\
**Tags:** server-synology\
**Created:** [July 10, 2022, 11:15pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294 "2022-07-10T23:15:10Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![leslienyc85](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/leslienyc85/32/283137_2.png) [@leslienyc85](https://forums.plex.tv/u/leslienyc85)\
**Post date:** [July 10, 2022, 11:15pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/1 "2022-07-10T23:15:10Z")

</div>

Use case: I have some “labels” (sharing \> Labels) that have never been used, I would like to delete them from the list of entries that’s automatically popping up when the user is trying to add a new label.

Question: how to delete (or edit/rename) unused Labels?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [July 11, 2022, 9:59am UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/2 "2022-07-11T09:59:05Z")

</div>

Are you 100% positive that those sharing labels are currently

- not assigned to any movie in _any of your libraries_ (easily verified with a filter)
- are not appearing in the manual sharing restrictions of any of your users [Restrictions on Library Access | Plex Support](https://support.plex.tv/articles/204232573-restricting-the-shares/)  
?

---

<div class="post-metadata">

**Author:** ![leslienyc85](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/leslienyc85/32/283137_2.png) [@leslienyc85](https://forums.plex.tv/u/leslienyc85)\
**Post date:** [July 11, 2022, 12:14pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/3 "2022-07-11T12:14:24Z")

</div>

Yes to both.

 ![Screen Shot 2022-07-11 at 8.12.11 AM](https://global.discourse-cdn.com/plex/original/4X/8/1/9/819c41cadc3c1dd096ee840b9f23ec0635767cdc.jpeg)

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [July 11, 2022, 12:40pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/4 "2022-07-11T12:40:11Z")

</div>

The screenshot shows only one filtered library. You have nine which are pinned and potentially even more.

---

<div class="post-metadata">

**Author:** ![leslienyc85](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/leslienyc85/32/283137_2.png) [@leslienyc85](https://forums.plex.tv/u/leslienyc85)\
**Post date:** [July 11, 2022, 1:50pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/5 "2022-07-11T13:50:33Z")

</div>

> [@OttoKerner](#):
>
> Restrictions on Library Access | Plex Support

Confirming I have checked all my libraries against this filter and it returned no matches each time.

_Side question: are filters available across all libraries? A feature request I would LOVE to see fulfilled would be to have actors/directors to also be across libraries_

---

<div class="post-metadata">

**Author:** ![leslienyc85](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/leslienyc85/32/283137_2.png) [@leslienyc85](https://forums.plex.tv/u/leslienyc85)\
**Post date:** [July 11, 2022, 1:54pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/7 "2022-07-11T13:54:35Z")

</div>

![Screen Shot 2022-07-11 at 9.51.56 AM](https://global.discourse-cdn.com/plex/original/4X/3/a/7/3a761978e9a49cac2e39d47096d7decf86e013ad.jpeg)  
 ![Screen Shot 2022-07-11 at 9.51.59 AM](https://global.discourse-cdn.com/plex/original/4X/7/f/4/7f470c6093981d36e59da648a78444b6ee719366.jpeg)  
 ![Screen Shot 2022-07-11 at 9.52.10 AM](https://global.discourse-cdn.com/plex/original/4X/3/d/9/3d9858ec5aae295e080721a5dd98e62fab1002aa.jpeg)  
 ![Screen Shot 2022-07-11 at 9.52.13 AM](https://global.discourse-cdn.com/plex/original/4X/6/4/6/646a72492ef70622b0932dc54eb64a97301b2a32.jpeg)  
 ![Screen Shot 2022-07-11 at 9.52.15 AM](https://global.discourse-cdn.com/plex/original/4X/f/b/d/fbdb6ea14da257ca079cdfb6966aaddd8152e763.jpeg)

---

<div class="post-metadata">

**Author:** ![leslienyc85](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/leslienyc85/32/283137_2.png) [@leslienyc85](https://forums.plex.tv/u/leslienyc85)\
**Post date:** [July 11, 2022, 1:55pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/8 "2022-07-11T13:55:17Z")

</div>

![Screen Shot 2022-07-11 at 8.12.11 AM](https://global.discourse-cdn.com/plex/original/4X/8/1/9/819c41cadc3c1dd096ee840b9f23ec0635767cdc.jpeg)  
 ![Screen Shot 2022-07-11 at 9.51.54 AM](https://global.discourse-cdn.com/plex/original/4X/2/3/3/233676e0e559425b551b132c78bfd5bd590d7815.jpeg)  
 ![Screen Shot 2022-07-11 at 9.51.52 AM](https://global.discourse-cdn.com/plex/original/4X/5/8/1/581284817583d61dd4550c254b33797ab1624acc.jpeg)  
 ![Screen Shot 2022-07-11 at 9.51.50 AM](https://global.discourse-cdn.com/plex/original/4X/c/5/e/c5e29ad7cbd38a97372e2c2d566f71d15baee0ec.jpeg)  
 ![Screen Shot 2022-07-11 at 9.51.37 AM](https://global.discourse-cdn.com/plex/original/4X/2/a/6/2a6b94f565ce930761abf27a97e9f821563ee072.jpeg)

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [July 11, 2022, 3:12pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/9 "2022-07-11T15:12:50Z")

</div>

Your server software version is relatively old. Have you tried to upgrade?

You also might want to check the health of your primary Plex database file.

> **[Repair a Corrupted Database | Plex Support](https://support.plex.tv/articles/repair-a-corrupted-database/)**
>
> Note: This article is for Plex Media Server version 1.23.2 and newer. If using an earlier version, see . Though...

---

<div class="post-metadata">

**Author:** ![leslienyc85](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/leslienyc85/32/283137_2.png) [@leslienyc85](https://forums.plex.tv/u/leslienyc85)\
**Post date:** [July 11, 2022, 4:33pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/10 "2022-07-11T16:33:39Z")

</div>

Thanks!

I have updated the server but still see this unused filter (downloaded the file, then from the Synology package center, uploaded it via “manual update”).  
How would I go about checking the health of my primary Plex database file?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [July 11, 2022, 4:35pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/11 "2022-07-11T16:35:33Z")

</div>

1. [activate debug](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/ "activate debug") logging ( **not** ‘verbose’!)
2. stop Plex Server
3. wait 1 minute
4. start Plex Server
5. wait 5 minutes
6. [fetch log files](https://support.plex.tv/hc/en-us/articles/200250417 "fetch log files") and attach them here

Or inspect them yourself. Take a look at the `Plex Media Server.log` file and seek for messages about database `corrupt` or `malformed`.  
If you find these, you may have to repair your database.

> **[Repair a Corrupted Database | Plex Support](https://support.plex.tv/articles/repair-a-corrupted-database/)**
>
> Note: This article is for Plex Media Server version 1.23.2 and newer. If using an earlier version, see . Though...

---

<div class="post-metadata">

**Author:** ![leslienyc85](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/leslienyc85/32/283137_2.png) [@leslienyc85](https://forums.plex.tv/u/leslienyc85)\
**Post date:** [July 11, 2022, 4:54pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/12 "2022-07-11T16:54:05Z")

</div>

> [@OttoKerner](#):
>
> activate debug

This is what I got, let me know if this is what you meant (still a bit of a newbie). Thank you for all your help!

[LP logs July 11.txt](https://forums.plex.tv/uploads/short-url/zSIiWKihokEe7sQcH0fFI32222y.txt) (155.1 KB)

---

<div class="post-metadata">

**Author:** ![SwiftPanda16](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/swiftpanda16/32/81839_2.png) [@SwiftPanda16](https://forums.plex.tv/u/SwiftPanda16)\
**Post date:** [July 11, 2022, 5:20pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/13 "2022-07-11T17:20:21Z")

</div>

Have you tried optimizing the database?

> [@How to delete/rename sharing labels](https://forums.plex.tv/t/how-to-delete-rename-sharing-labels/105412/11):
>
> I just verified this just now. If you want the unused labels removed immediately without having to wait on your schedule, follow these steps: Settings \> Troubleshooting \> Optimize Database Of course, you will have to remove the label from all media that the label is currently assigned to for this to work. Hope this helps!

---

<div class="post-metadata">

**Author:** ![leslienyc85](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/leslienyc85/32/283137_2.png) [@leslienyc85](https://forums.plex.tv/u/leslienyc85)\
**Post date:** [July 11, 2022, 9:50pm UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/14 "2022-07-11T21:50:39Z")

</div>

That is … BRILLIANT! It did work, thank you so much!

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [July 12, 2022, 6:28am UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/15 "2022-07-12T06:28:33Z")

</div>

Database optimization happens automatically every 3 days. (If the server is running during the server maintenance period)

---

<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:** [October 10, 2022, 6:29am UTC](https://forums.plex.tv/t/cannot-delete-unused-sharing-label/800294/16 "2022-10-10T06:29:01Z")

</div>

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