[Support]: Possible bug in /api/faces/:name/delete endpoint - not able to delete face #20290
Replies: 3 comments 9 replies
-
|
The Based on your curl command, the syntax appears correct: curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{}' \
"http://frigate-nvr:5000/api/faces/Michele/delete"The endpoint should return a 200 response with a success message when working properly(1)(2). Since you're getting The fact that deletion works through the Frigate UI but not via the API suggests there may be a difference in how the UI and API handle the deletion operation internally. This could be related to the face recognition feature being in a pre-alpha state, as mentioned in the GitHub discussions(3). Since the API call appears syntactically correct according to the documentation and you're receiving a success response, this looks like a legitimate bug in the face deletion endpoint implementation. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
There is no entry into the DB, so that is not correct You are making the API call The UI deletes all of the image files within a persons name. |
Beta Was this translation helpful? Give feedback.
-
|
I'm trying to do this too, and this post is the only resource I can find on the topic. I have exactly the same issue as @zhamm:
From this post, I understand that the request body needs to in some way contain a list of file names. What is the specific format for the needed request body? So far, I've tried just using a JSON list. This results in an error response: I've also tried using the person's name as the dictionary key so the JSON is |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Describe the problem you are having
I am unable to delete a face from the facial recognition pool of trained faces. I can add successfully, but deleting always tells me it has been removed but it is still there. This is reproduceable even from the command line.
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{}' "http://frigate-nvr:5000/api/faces/Michele/delete"
{"success":true,"message":"Successfully deleted faces."}
I am able to successfully delete the face using the Frigate UI page.
Steps to reproduce
1.Create a face manually in Frigate UI or via API. Either works successfully.
2.Delete the same face using the /api/faces/:name/delete endpoint.
3.Face remains in db and is not deleted
4.Deleting the face using the normal Frigate UI works fine.
...
Version
0.16.1-e664cb2
In which browser(s) are you experiencing the issue with?
Firefox and Chrome
Frigate config file
Not relevant.docker-compose file or Docker CLI command
Not relevant.Relevant Frigate log output
Relevant go2rtc log output
Operating system
Debian
Install method
Docker Compose
Network connection
Wired
Camera make and model
Various
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions