# Deleteing dirctory

**URL:** <https://forums.plex.tv/t/deleteing-dirctory/569971>\
**Category:** Plex Media Server\
**Tags:** server-windows, server-synology\
**Created:** [April 8, 2020, 8:27am UTC](https://forums.plex.tv/t/deleteing-dirctory/569971 "2020-04-08T08:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Relax87](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@Relax87](https://forums.plex.tv/u/Relax87)\
**Post date:** [April 8, 2020, 8:27am UTC](https://forums.plex.tv/t/deleteing-dirctory/569971/1 "2020-04-08T08:27:02Z")

</div>

How do I delete media and delete the directory where the media is located and delete other files with the same path as the media file, for example: a / b / xxx.mp4 a / b / xxx.jpg Delete b when deleting the media in the plex

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [April 8, 2020, 9:42am UTC](https://forums.plex.tv/t/deleteing-dirctory/569971/2 "2020-04-08T09:42:17Z")

</div>

1. Delete the folder
2. `Scan Library Files` for the linked library in Plex (e.g. from the `...` context menu of that library or `Settings` \> `Server` \> `Manage` \> `Libraries`)

# 

**Edit:**  
If you have configured Plex not to automatically empty its Trash after every update, you might need to manually trigger `Empty Trash` (library context menu: `...` \> `Manage Library` \> `Empty Trash`)

---

<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:** [July 7, 2020, 9:42am UTC](https://forums.plex.tv/t/deleteing-dirctory/569971/3 "2020-07-07T09:42:29Z")

</div>

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