# Python Plex API : Having issues with empty trash

**URL:** <https://forums.plex.tv/t/python-plex-api-having-issues-with-empty-trash/215179>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [November 24, 2017, 5:26am UTC](https://forums.plex.tv/t/python-plex-api-having-issues-with-empty-trash/215179 "2017-11-24T05:26:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![obelisk3847](https://avatars.discourse-cdn.com/v4/letter/o/ed655f/32.png) [@obelisk3847](https://forums.plex.tv/u/obelisk3847)\
**Post date:** [November 24, 2017, 5:26am UTC](https://forums.plex.tv/t/python-plex-api-having-issues-with-empty-trash/215179/1 "2017-11-24T05:26:45Z")

</div>

Trying out Plex API and can successfully trigger a Library Section scan with the command plex.library.section(“TV Shows”).update() but am having no luck triggering trash empty with plex.library.emptyTrash() or plex.library.section(“TV Shows”).emptyTrash(). The command is not triggering a Python error when executed but it seems to have no impact on the Plex Server.

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![PKKid](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pkkid/32/991_2.png) [@PKKid](https://forums.plex.tv/u/PKKid)\
**Post date:** [November 25, 2017, 3:52pm UTC](https://forums.plex.tv/t/python-plex-api-having-issues-with-empty-trash/215179/2 "2017-11-25T15:52:05Z")

</div>

This was fixed yesterday. Sorry about that. If you pull the new code and try again it should be good.

---

<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:** [January 8, 2020, 8:06pm UTC](https://forums.plex.tv/t/python-plex-api-having-issues-with-empty-trash/215179/3 "2020-01-08T20:06:02Z")

</div>


