romainsi 7 Posted February 13, 2024 Posted February 13, 2024 Hello, I use Version 4.8.1.0 of Emby via Docker. A few versions ago, I created a collection in Emby (see attachment). I'd like to delete it but I can't. I've tried to follow other topics on the subject without success. My collection is called "Collections". I've found the tree structure: /config/root/default/collections and the options.xml file (I have a copy if necessary), which I've deleted (and restarted Emby) but it doesn't work. I've also deleted the Collections folder but nothing more. I've of course restarted all the library scans but it's still there. I have no errors in the logs : Info TaskManager: Queueing task RefreshMediaLibraryTask Info TaskManager: Executing Scan media library Info TaskManager: Scan media library Completed after 0 minute(s) and 0 seconds Do you have a solution? Best regards, Romain.
romainsi 7 Posted February 13, 2024 Author Posted February 13, 2024 Arf i see on this documentation https://emby.media/support/articles/Collections-Manual-Migration.html : "This does not apply to Emby Server version 4.6 and later. Collections are stored in the database with later versions". Which would explain why I can't delete it ... I hope a solution is possible
Luke 40069 Posted February 29, 2024 Posted February 29, 2024 @Happy2Playdidn't you previously come up with a trick to remove this?
Happy2Play 9441 Posted February 29, 2024 Posted February 29, 2024 Since library info is now in database only you have to use the api and remove the library id. Similar process of adding the library to a new install. API link bottom of dashboard. Per the topic you need to connect via localhost or https but there is a browser flag option to work around the CORS issues. @Lukeisn't \programdata\root\default obsolete now? Or is it still utilized on old install as a new install it doesn't exist.
Luke 40069 Posted March 6, 2024 Posted March 6, 2024 On 2/28/2024 at 11:51 PM, Happy2Play said: Since library info is now in database only you have to use the api and remove the library id. Similar process of adding the library to a new install. API link bottom of dashboard. Per the topic you need to connect via localhost or https but there is a browser flag option to work around the CORS issues. @Lukeisn't \programdata\root\default obsolete now? Or is it still utilized on old install as a new install it doesn't exist. Yes it is obsolete. We'll have to add a way to remove the library.
Happy2Play 9441 Posted March 6, 2024 Posted March 6, 2024 (edited) 3 hours ago, Luke said: Yes it is obsolete. We'll have to add a way to remove the library. As a note to removing Collections library it currently deletes the /metadata/collection content so all existing collections have to be refreshed. Edited March 6, 2024 by Happy2Play 1
Solution romainsi 7 Posted May 11, 2024 Author Solution Posted May 11, 2024 Hello, Ok with API, for those who have the problem, here is the technique used : 1. GET /Library/VirtualFolders/Query curl -X 'GET' \ 'https://emby.mydomain.fr/emby/Library/VirtualFolders/Query?api_key=<MyApiKey>' \ -H 'accept: application/json' -> Retrieve ID of collection to remove 2. POST /Library/VirtualFolders/Delete curl -X 'POST' \ 'https://emby.mydomain.fr/emby/Library/VirtualFolders/Delete?api_key=<MyApiKey>' \ -H 'accept: */*' \ -H 'Content-Type: application/json' \ -d '{ "Id": "<IdToRemove>", "RefreshLibrary": true }' -> Change IdToRemove by ID retrive in last query and execute. Thanks for your help.
Luke 40069 Posted May 11, 2024 Posted May 11, 2024 14 hours ago, romainsi said: Hello, Ok with API, for those who have the problem, here is the technique used : 1. GET /Library/VirtualFolders/Query curl -X 'GET' \ 'https://emby.mydomain.fr/emby/Library/VirtualFolders/Query?api_key=<MyApiKey>' \ -H 'accept: application/json' -> Retrieve ID of collection to remove 2. POST /Library/VirtualFolders/Delete curl -X 'POST' \ 'https://emby.mydomain.fr/emby/Library/VirtualFolders/Delete?api_key=<MyApiKey>' \ -H 'accept: */*' \ -H 'Content-Type: application/json' \ -d '{ "Id": "<IdToRemove>", "RefreshLibrary": true }' -> Change IdToRemove by ID retrive in last query and execute. Thanks for your help. Yea this is what the ui does.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now