GithubHelp home page GithubHelp logo

Comments (4)

Southpaw1496 avatar Southpaw1496 commented on June 28, 2024 1

I also had this issue, and I was able to work around it by using the API. I used an http client called Paw (also known as RapidAPI for Mac), but you could also accomplish it using cURL. The abstract steps are as follows:

  1. Obtain an API Key
  2. GET /api/libraries to find the ID of the library you want to delete (use the header x-api-key: <KEY> to authenticate)
  3. DELETE /api/libraries/<id> (where <id> is the ID of the library you want to delete).

Once you have your API key, I think this would be the way to do it in cURL (but I haven't tested it).

  1. export IMMICH_API_KEY=<API KEY>
  2. curl "<YOUR IMMICH IP/DOMAIN>/api/libraries" -H "x-api-key: $IMMICH_API_KEY"
  3. Find the id of the library that has the name you want in the JSON you get back.
  4. curl -X "DELETE" "<IMMICH IP/DOMAIN>/api/libraries/<LIBRARY ID>" -H "x-api-key: $IMMICH_API_KEY"

from immich.

alextran1502 avatar alextran1502 commented on June 28, 2024 1

This issue has been fixed and will be available in the next release

from immich.

Shurov avatar Shurov commented on June 28, 2024

I was able to work around it by using the API

Thanks for the workaround! Your detailed instructions helped me as well - first set (with 3 steps) worked perfectly via Postman.

Still would keep this ticket open for the bug fix with non-working deletion from UI.

from immich.

Shurov avatar Shurov commented on June 28, 2024

This issue has been fixed and will be available in the next release

Thanks for this!
I'm thinking, as an additional idiot-proof (like me) protection - thinking of the root cause, if the main photo dir included everything: photo sources themselves as well as Immich technical folder (with uploads) that caused a circle reference.... Maybe it's possible somehow to check this in a dir structure (compare dir pathes) and exclude immich folder with thumbs from the search/fetch/etc?

from immich.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.