# Expire (delete) content based on criteria

**URL:** <https://forums.plex.tv/t/expire-delete-content-based-on-criteria/838899>\
**Category:** Plex Media Server\
**Tags:** server-windows, library-management\
**Created:** [April 23, 2023, 3:17pm UTC](https://forums.plex.tv/t/expire-delete-content-based-on-criteria/838899 "2023-04-23T15:17:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommyboyPlexTV](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tommyboyplextv/32/102533_2.png) [@tommyboyPlexTV](https://forums.plex.tv/u/tommyboyPlexTV)\
**Post date:** [April 23, 2023, 3:17pm UTC](https://forums.plex.tv/t/expire-delete-content-based-on-criteria/838899/1 "2023-04-23T15:17:48Z")

</div>

Server Version#: 1.12.1

I am looking for a way to set movies and tv shows to expire (delete from server) based on certain criteria. I was told it can be done to an extent on TV shows, but would like to see this for movies too. I found this plugin ([GitHub - cmsj/plexpiry: A tool for expiring content from a Plex server](https://github.com/cmsj/plexpiry)), but have no idea on how to install it and if it will even work anymore. It actually seems to do exactly what I am asking. Any advice or help on how to install this or if there is another way to go about doing what I am looking for?

I posted this on reddit too

---

<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 22, 2023, 3:18pm UTC](https://forums.plex.tv/t/expire-delete-content-based-on-criteria/838899/2 "2023-07-22T15:18:30Z")

</div>

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