[Support]: Frigate database not cleaning up missing recordings after manual file deletion #20563
Replies: 2 comments 7 replies
|
Frigate provides a specific feature to handle this exact situation. When recording files are deleted manually but database entries remain, you can enable recordings sync to clean up orphaned database entries (1). To resolve this issue, add the following configuration to your Frigate config (1): This feature tells Frigate to check the file system and delete any database entries for files that don't exist (1). However, there's an important limitation: this feature is meant to fix variations in files, not completely delete entries in the database (1). If you deleted all of your media, the documentation recommends not using Since you only deleted some files to free up space, enabling 📚 Sources: Have another question? Just tag @inkeep. |
|
This is a tag-along comment related to, but not exactly the same as the start of this support query -- In the Review pane of the Frigate web interface, when I manually select one or more clips and then use the Delete button to delete them, the clips are deleted, but I notice on careful inspection of the Frigate database that the associated database entries for those clips are NOT deleted. Is there a reason why Frigate would want (or prefer) to keep Event database entries even for clips that were intentionally and specifically deleted by the end user? A major reason for manually deleting clips is user privacy. It would seem that to fully honor the user's possible privacy concerns and their clip-deletion request, it would be best to also immediately delete & purge the database event entries associated with the to-be-deleted clip(s). (Within a few seconds at most, not merely flagging or marking them for possible garbage collection at some indeterminate future time.) |



You can confirm if it’s corrupt
If it comes back with an error then you can: