Following any upgrade after 1.18.x, the music librairy scan does not remove items in the database where they have been removed / deleted from the scan folders on the HDD.
Prerequisite:
Windows Plex server software release 1.18.x or higher
Steps to reproduce,
1- Add music file types within the folder where it would be scanned by the Plex music scan
2- Proceed to scan the music library.
3- Ensure the entries have been added to the music library.
4- Remove files from the folder OR Replace the same files with another file type (MP3 -> FLAC)
5- Proceed to scan the music library - This would prove the entries would not be removed from the library. When replacing the file types, this create duplicate entries in the database where the old references (MP3 in this case) won’t work anymore as expected since the files are not there anymore,
6- Target files removed on the folder (s) on the HDD are NOT removed from the database.
Workaround:
Downgrade to 1.17.x, and proceed with a simple music library scan, and this would clean the database and resolve the database discrepencies. Content on HDD would match the entries in the database.
I do believe I tried to ‘Empty Trash’. I tried several releases in 1.18.x and also 1.19.1, and in all cases I got the issue.
Each time it was required for me to downgrade back to 1.17.0.1841 to resolve the issue, and this put my implementation at risk everytime i’m doing upgrade / downgrade.
I can try to have a look Tomorrow but will need debug server logs after the scan and again after the completion of emptying the trash for that library and details of what was deleted