I
Immich•3mo ago
volcs0

Is there yet a way to delete one person?

Two of my sons have all gotten grouped under one of their names. I know that ultimately, I need to readjust the matching settings. For the most part, matching has been great, and I have over 500 people in my DB. So, I don't want to start over - I want to delete the one name (one of my sons) and then re-id the "missing" faces and hopefully get them both correct. Is there a way to do this?
17 Replies
Immich
Immich•3mo ago
:wave: Hey @volcs0, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
NoMachine
NoMachine•3mo ago
not easily, you would need to use the API to move the "incorrect" faces to a new person. I can't think of a better way to do it
volcs0
volcs0OP•3mo ago
I don't mind if it's not easy, I'd just like to fix it. So, I have to boys - Ari and Max. Most of the young Ari pictures are labelled Max, in addition to all the young Max pictures. The older pictures of both are often correct. There are a lot of these - over 1000. It would take a very long time to correct manually. So, ideally, I would delete "Max" from the entire DB. Then I would rematch all the missing faces with higher sensitivity. Is this along the lines of what you were thinking using the API?
NoMachine
NoMachine•2mo ago
there's no easy way I'm afraid. The API alternative suggested was more of an option if you are willing to script something, but with that many assets, it may be difficult. one possible, destructive way, would be to tamper with the DB and remove the person, that should also remove all the faces associated with it. if you decide to go this route, make sure you: 1. stop immich_server container (to avoid any change) 2. take a backup of the current DB. 3. execute the following in your DB DELETE FROM person where id = 'THE_PERSON_ID'; (you can get the person ID going to the people tab, and choosing the person in question, the id is the string of numbers and leters in the URL /people/b8e41-5474-400c-83af-4170ec1859 4. start immich_server and launch the face detection job... you may want to reduce the Maximum recognition distance setting first, to avoid getting the same results
volcs0
volcs0OP•2mo ago
I think I'll try this. How would you change these settings?
No description
NoMachine
NoMachine•2mo ago
I would lower it to 0.3 if the same person is detected as 2 different people, is very easy to fix. the other way around (your case), is not 😉
volcs0
volcs0OP•2mo ago
Also - and sorry for the noob question - I start the entire stack from a single compose file. So, it sounds I need to do a docker compose down for just the server - and then docker exec into the DB container to complete this?
NoMachine
NoMachine•2mo ago
no, just docker stop immich_server
volcs0
volcs0OP•2mo ago
OK did this and removed the person from the DB. I decreased the maximum recognition distance to 0.3 When I clicked "Missing" in "Face Detection" in jobs, it showed a count of "1" and then zero. I clicked on "Missing" in "Facial Recognition" and it is showing 200,000 (and counting down). Is this right?
NoMachine
NoMachine•2mo ago
check the logs if faces are being detected
volcs0
volcs0OP•2mo ago
this is what I am seeing: [Nest] 7 - 07/10/2025, 10:51:37 AM LOG [Microservices:PersonService] Creating new person for face 65d46f73-75ab-4403-8f97-89beae814b4e [Nest] 7 - 07/10/2025, 10:51:38 AM LOG [Microservices:PersonService] Creating new person for face e5f53eec-8023-4d45-93ba-c38b51169c4f [Nest] 7 - 07/10/2025, 10:51:38 AM LOG [Microservices:PersonService] Creating new person for face 7e9c3b17-b7b7-4d58-859e-bbf2ad8545d3 [Nest] 7 - 07/10/2025, 10:51:38 AM LOG [Microservices:PersonService] Creating new person for face 28622577-ddcf-4243-a363-8655ddee1641 [Nest] 7 - 07/10/2025, 10:51:38 AM LOG [Microservices:PersonService] Creating new person for face e1c54e0c-0579-43e9-86c4-73ce9fde877e [Nest] 7 - 07/10/2025, 10:51:38 AM LOG [Microservices:PersonService] Creating new person for face da17917f-29f4-40b2-b561-7a9ad948bd34 [Nest] 7 - 07/10/2025, 10:51:38 AM LOG [Microservices:PersonService] Creating new person for face 5852c2f0-efaf-42d9-8742-cfab57bddf0f
volcs0
volcs0OP•2mo ago
No description
volcs0
volcs0OP•2mo ago
It's going quickly When I click "refresh" or "missing" in face detection, nothing happens. And there is nothing in the log. Shouldn't refresh kick off a rescan of every picture for faces? Clicking "missing" for facial recognition does kick off a full scan
NoMachine
NoMachine•2mo ago
did it create the new persons?
volcs0
volcs0OP•2mo ago
I'm going through it now. I see faces waiting to be named now - which I I guess that I want. I was just surprised that when I clicked "refresh" under "face detection" nothing happened. But maybe all the faces were detected, and it's the recognition step that's important (the clustering)
darkthunder1432
darkthunder1432•2mo ago
Yes, face detection means just get picture and detect bounding boxes for each person. even if we delete person from database these bounding boxes don't change. face recognition is the step which takes this picture with bounding box and clusters face.
volcs0
volcs0OP•2mo ago
This process worked. I deleted my three sons - since they were a mess. And now I'm going back and re-adding them. With the distance set to 0.3, they are really split up, but I'm getting there.

Did you find this page helpful?