Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Delete videos from Google Drive after EVENT_RETENTION_DAYS #4

Open
yuchenshi opened this issue Jan 5, 2025 · 2 comments
Open

Comments

@yuchenshi
Copy link
Contributor

Is it possible to delete video files from Google Drive after a certain number of days?

I've noticed that EVENT_RETENTION_DAYS triggers DB cleanup but it doesn't seem to affect Google Drive so old videos still take up storage space.

Also, I'm not sure how this interacts with the "fetch_all_events" call every 3 minutes -- wouldn't it fetch all Frigate events, including events before EVENT_RETENTION_DAYS? If so, looking at the code, main.py may add those events back to the DB since those entries no longer exists after cleanup. (I've not tested this myself though.)

@poornachandratejasvi
Copy link

im also interested in this

@kankadev
Copy link
Owner

Thank you. I'll investigate this after getting healthy again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants