Skip to content

BUG: face data persists after source folder is removed #569

@DecodeX15

Description

@DecodeX15

There is an issue where face data remains in the system even after the folder containing the source photos has been deleted. This creates "orphaned" face entries that are not linked to any existing file, causing data inconsistency.

Current Behavior:

A user adds a folder of photos.
The model processes the photos and correctly tracks the faces within them.
The user then removes the source folder.
The face data from the deleted photos remains in the database/system, but it is no longer associated with a valid photo, appearing as an entry with "zero faces" or invalid links.

Expected Behavior:

When a folder is deleted, all face data associated with the photos in that folder should also be deleted from the system.
The face tracking data should always be synchronized with the existing photo library, ensuring that every tracked face corresponds to a photo that is currently in a folder.

see the video

Recording.2025-10-07.011629.mp4

Record

  • I agree to follow this project's Code of Conduct

Checklist before Submitting

  • Have you updated docs for it?
  • Have you added unit tests?
  • Have you made sure unit tests pass?
  • Have you made sure code formatting is correct?
  • Do Your changes passes all tests?

Metadata

Metadata

Assignees

Labels

backendbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions