How to reset Default Library?
I have uploaded duplicated photos into default library (already exists in external), how do I reset the data base info?
I have tried to delete the files in
$UPLOAD_LOCATION/library
but the numbers I see from Web portal (e.g. file size and assets counts) don't get updated and there doesn't seem to be a way to force re-scan9 Replies
I don't want to delte immich
I just want to reset default library to "empty"
if I delete
pg_data
, I will lose all my metadata, I do not want thatIf you have SQL access, delete from assets where libraryid = <id>
is that all I need?
That won't properly clean up thumbnails and such
If you're comfortable doing a tiny bit of scripting against the API, you can get all the assets, filter them by library ID, then call the delete endpoint with them.
that's probably fine, I deleted everything except
thumbs
un the UPLOAD PATH
I'm okay if there's some zombie files in thumbs I guessActually, select as many assets as you can and press delete. That will only delete upload assets and skip external ones
ðŸ§
I wish there's a way to "view by library" I guess, that would have been handy
libraries are brand new, we're currently in the bugfix/performance enhancement part of the cycle. Maybe we'll add more features later