Fixes the issue in Plex Media Server when emptying trash does not get rid of the trash icons.
Debian based distros:
sudo apt-get install python3
-
Clone project:
git clone https://github.com/l3uddz/plex_trash_fixer /opt/plex_trash_fixer
-
Set permissions:
chmod a+x /opt/plex_trash_fixer/plex_trash_fixer.py
-
Update
DATABASE_PATH=
inplex_trash_fixer.py
to match your Plex Media Server DB's location.
-
Plex Media Server: Empty trash and optimize library. Then shut down Plex Media Server.
-
Run script:
python3 /opt/plex_trash_fixer/plex_trash_fixer.py