Join Slack
Powered by
Hello. Is there any way to set up retention for Fl...
# ask-community
t
Tomáš Řehák (realrehi)
11/18/2025, 3:53 PM
Hello. Is there any way to set up retention for Flow Runs in Prefect OSS? And also something for other tables in Postgres, such as
log
etc. We found e.g. the
PREFECT_EVENTS_RETENTION_PERIOD="2d"
for
events
table. But is there any good "Overall Retention" setup guide?
n
Nate
11/18/2025, 4:00 PM
hi
@Tomáš Řehák (realrehi)
- because usage patterns are so wildly different in OSS we don't have cleanup operations on by default, but we have guides (and more on the way) for cleaning stuff up
https://docs.prefect.io/v3/advanced/database-maintenance
https://prefect-bd373955-add-ai-database-cleanup-example.mintlify.app/v3/examples/ai-database-cleanup-with-approval
Nate
11/18/2025, 4:01 PM
feel free to let us know if you think itd be useful to add something else specific
17
Views
Open in Slack
Previous
Next