romainsi 6 Posted February 13 Share Posted February 13 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. Link to comment Share on other sites More sharing options...
romainsi 6 Posted February 13 Author Share Posted February 13 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 Link to comment Share on other sites More sharing options...
Luke 38342 Posted February 29 Share Posted February 29 @Happy2Playdidn't you previously come up with a trick to remove this? Link to comment Share on other sites More sharing options...
Happy2Play 9025 Posted February 29 Share Posted February 29 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. Link to comment Share on other sites More sharing options...
Luke 38342 Posted March 6 Share Posted March 6 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. Link to comment Share on other sites More sharing options...
Happy2Play 9025 Posted March 6 Share Posted March 6 (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 by Happy2Play 1 Link to comment Share on other sites More sharing options...
Solution romainsi 6 Posted May 11 Author Solution Share Posted May 11 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. Link to comment Share on other sites More sharing options...
Luke 38342 Posted May 11 Share Posted May 11 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. Link to comment Share on other sites More sharing options...
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