#Is there yet a way to delete one person?

1 messages · Page 1 of 1 (latest)

little eagle
#

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?

obsidian mangoBOT
#

:wave: Hey @little eagle,

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

#

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.

dusky wraith
little eagle
# dusky wraith not easily, you would need to use the API to move the "incorrect" faces to a new...

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?

dusky wraith
# little eagle I don't mind if it's not easy, I'd just like to fix it. So, I have to boys - Ar...

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
little eagle
dusky wraith
#

if the same person is detected as 2 different people, is very easy to fix. the other way around (your case), is not 😉

little eagle
# dusky wraith I would lower it to 0.3

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?

dusky wraith
little eagle
# dusky wraith no, just `docker stop immich_server`

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?

dusky wraith
#

check the logs if faces are being detected

little eagle
# dusky wraith check the logs if faces are being detected

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

little eagle
#

It's going quickly

little eagle
# dusky wraith check the logs if faces are being detected

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

dusky wraith
#

did it create the new persons?

little eagle
#

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)

minor sonnet
#

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.